33 #if !defined(_SPANDSP_LOGGING_H_) 34 #define _SPANDSP_LOGGING_H_ 45 SPAN_LOG_SEVERITY_MASK = 0x00FF,
46 SPAN_LOG_SHOW_DATE = 0x0100,
47 SPAN_LOG_SHOW_SAMPLE_TIME = 0x0200,
48 SPAN_LOG_SHOW_SEVERITY = 0x0400,
49 SPAN_LOG_SHOW_PROTOCOL = 0x0800,
50 SPAN_LOG_SHOW_VARIANT = 0x1000,
51 SPAN_LOG_SHOW_TAG = 0x2000,
52 SPAN_LOG_SUPPRESS_LABELLING = 0x8000
61 SPAN_LOG_PROTOCOL_ERROR = 3,
62 SPAN_LOG_PROTOCOL_WARNING = 4,
77 #if defined(__cplusplus) 112 SPAN_DECLARE(
int) span_log_set_tag(
logging_state_t *s,
const char *tag);
114 SPAN_DECLARE(
int) span_log_set_protocol(
logging_state_t *s,
const char *protocol);
116 SPAN_DECLARE(
int) span_log_set_sample_rate(
logging_state_t *s,
int samples_per_second);
118 SPAN_DECLARE(
int) span_log_bump_samples(
logging_state_t *s,
int samples);
134 #if defined(__cplusplus) void(* error_handler_func_t)(const char *text)
Definition: logging.h:40
int span_log(logging_state_t *s, int level, const char *format,...)
Generate a log entry.
Definition: logging.c:84
int span_log_buf(logging_state_t *s, int level, const char *tag, const uint8_t *buf, int len)
Generate a log entry displaying the contents of a buffer.
Definition: logging.c:158
int span_log_test(logging_state_t *s, int level)
Test if logging of a specified severity level is enabled.
Definition: logging.c:76
Definition: private/logging.h:33
void(* message_handler_func_t)(int level, const char *text)
Definition: logging.h:37