219 #define switch_log_check_mask(_mask, _level) (_mask & ((size_t)1 << _level)) switch_log_json_format_item_t sequence
switch_text_channel_t
A target to write log/debug info to.
#define SWITCH_END_EXTERN_C
switch_log_json_format_item_t version
switch_log_node_t * switch_log_node_dup(const switch_log_node_t *node)
switch_memory_pool_t * pool
Representation of an event.
switch_log_json_format_item_t pid
uint32_t switch_log_str2mask(_In_z_ const char *str)
switch_log_json_format_item_t timestamp
switch_log_json_format_item_t ident
_Ret_z_ const char * switch_log_level2str(_In_ switch_log_level_t level)
Return the name of the specified log level.
switch_log_json_format_item_t line
switch_log_level_t switch_log_str2level(_In_z_ const char *str)
Return the level number of the specified log level name.
switch_log_json_format_item_t uuid
switch_log_level_t slevel
switch_status_t(* switch_log_function_t)(const switch_log_node_t *node, switch_log_level_t level)
switch_log_json_format_item_t full_message
switch_status_t switch_log_shutdown(void)
Shut down the logging engine.
switch_log_json_format_item_t short_message
switch_status_t
Common return values.
void void switch_log_vprintf(_In_ switch_text_channel_t channel, _In_z_ const char *file, _In_z_ const char *func, _In_ int line, _In_opt_z_ const char *userdata, _In_ switch_log_level_t level, const char *fmt, va_list ap)
Write log data to the logging engine.
cJSON * switch_log_node_to_json(const switch_log_node_t *node, int log_level, switch_log_json_format_t *json_format, switch_event_t *chan_vars)
Convert a log node to JSON object. Destroy JSON object when finished.
const char * custom_field_prefix
switch_log_json_format_item_t level
void switch_log_meta_printf(switch_text_channel_t channel, const char *file, const char *func, int line, const char *userdata, switch_log_level_t level, cJSON **meta, const char *fmt,...) PRINTF_FUNCTION(8
Write log data to the logging engine w/ optional JSON metadata.
void void switch_log_meta_vprintf(_In_ switch_text_channel_t channel, _In_z_ const char *file, _In_z_ const char *func, _In_ int line, _In_opt_z_ const char *userdata, _In_ switch_log_level_t level, cJSON **meta, const char *fmt, va_list ap)
Write log data to the logging engine w/ optional JSON metadata.
void switch_log_node_free(switch_log_node_t **pnode)
switch_log_json_format_item_t host
void switch_log_printf(_In_ switch_text_channel_t channel, _In_z_ const char *file, _In_z_ const char *func, _In_ int line, _In_opt_z_ const char *userdata, _In_ switch_log_level_t level, _In_z_ _Printf_format_string_ const char *fmt,...) PRINTF_FUNCTION(7
Write log data to the logging engine.
switch_status_t switch_log_init(_In_ switch_memory_pool_t *pool, _In_ switch_bool_t colorize)
Initilize the logging engine.
switch_status_t switch_log_unbind_logger(_In_ switch_log_function_t function)
struct fspr_pool_t switch_memory_pool_t
switch_text_channel_t channel
switch_status_t switch_log_bind_logger(_In_ switch_log_function_t function, _In_ switch_log_level_t level, _In_ switch_bool_t is_console)
Shut down the logging engine.
switch_log_json_format_item_t file
switch_log_level_t
Log Level Enumeration.
#define SWITCH_BEGIN_EXTERN_C