htslib.hts_log

Undocumented in source.

Members

Enums

htsLogLevel
enum htsLogLevel

Log levels.

Functions

hts_get_log_level
htsLogLevel hts_get_log_level()

Gets the selected log level.

hts_log
void hts_log(htsLogLevel severity, const(char)* context, const(char)* format, ...)

! Logs an event. \param severity Severity of the event: - HTS_LOG_ERROR means that something went wrong so that a task could not be completed. - HTS_LOG_WARNING means that something unexpected happened, but that execution can continue, perhaps in a degraded mode. - HTS_LOG_INFO means that something normal but significant happened. - HTS_LOG_DEBUG means that something normal and insignificant happened. - HTS_LOG_TRACE means that something happened that might be of interest when troubleshooting. \param context Context where the event occurred. Typically set to "__func__". \param format Format string with placeholders, like printf.

hts_log_debug
void hts_log_debug(const(char)[] ctx, string msg)

! Logs an event with severity HTS_LOG_DEBUG and default context. Parameters: format, ...

hts_log_error
void hts_log_error(const(char)[] ctx, string msg)

! Logs an event with severity HTS_LOG_ERROR and default context. Parameters: format, ...

hts_log_info
void hts_log_info(const(char)[] ctx, string msg)

! Logs an event with severity HTS_LOG_INFO and default context. Parameters: format, ...

hts_log_trace
void hts_log_trace(const(char)[] ctx, string msg)

! Logs an event with severity HTS_LOG_TRACE and default context. Parameters: format, ...

hts_log_warning
void hts_log_warning(const(char)[] ctx, string msg)

! Logs an event with severity HTS_LOG_WARNING and default context. Parameters: format, ...

hts_set_log_level
void hts_set_log_level(htsLogLevel level)

Sets the selected log level.

Static variables

hts_verbose
int hts_verbose;

Selected log level.

Meta