33#if !defined(_SPANDSP_LOGGING_H_)
34#define _SPANDSP_LOGGING_H_
42 SPAN_LOG_SEVERITY_MASK = 0x00FF,
43 SPAN_LOG_SHOW_DATE = 0x0100,
44 SPAN_LOG_SHOW_SAMPLE_TIME = 0x0200,
45 SPAN_LOG_SHOW_SEVERITY = 0x0400,
46 SPAN_LOG_SHOW_PROTOCOL = 0x0800,
47 SPAN_LOG_SHOW_VARIANT = 0x1000,
48 SPAN_LOG_SHOW_TAG = 0x2000,
49 SPAN_LOG_SUPPRESS_LABELLING = 0x8000
58 SPAN_LOG_PROTOCOL_ERROR = 3,
59 SPAN_LOG_PROTOCOL_WARNING = 4,
74#if defined(__cplusplus)
113SPAN_DECLARE(
int) span_log_set_tag(
logging_state_t *s,
const char *tag);
117SPAN_DECLARE(
int) span_log_set_protocol(
logging_state_t *s,
const char *protocol);
119SPAN_DECLARE(
int) span_log_set_sample_rate(
logging_state_t *s,
int samples_per_second);
121SPAN_DECLARE(
int) span_log_bump_samples(
logging_state_t *s,
int samples);
133#if defined(__cplusplus)
void(* message_handler_func_t)(void *user_data, int level, const char *text)
Definition logging.h:37
int span_log(logging_state_t *s, int level, const char *format,...)
Generate a log entry.
Definition logging.c:90
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:160
bool span_log_test(logging_state_t *s, int level)
Test if logging of a specified severity level is enabled.
Definition logging.c:82
Definition private/logging.h:34