FreeSWITCH API Documentation  1.7.0
Data Structures | Macros | Typedefs | Functions
switch_log.h File Reference

Simple Log. More...

#include <switch.h>
+ Include dependency graph for switch_log.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  switch_log_node_t
 Log Data. More...
 

Macros

#define switch_log_check_mask(_mask, _level)   (_mask & ((size_t)1 << _level))
 

Typedefs

typedef switch_status_t(* switch_log_function_t )(const switch_log_node_t *node, switch_log_level_t level)
 

Functions

switch_status_t switch_log_init (_In_ switch_memory_pool_t *pool, _In_ switch_bool_t colorize)
 Initilize the logging engine. More...
 
switch_status_t switch_log_shutdown (void)
 Shut down the logging engine. More...
 
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. More...
 
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. More...
 
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. More...
 
switch_status_t switch_log_unbind_logger (_In_ switch_log_function_t function)
 
_Ret_z_ const char * switch_log_level2str (_In_ switch_log_level_t level)
 Return the name of the specified log level. More...
 
switch_log_level_t switch_log_str2level (_In_z_ const char *str)
 Return the level number of the specified log level name. More...
 
uint32_t switch_log_str2mask (_In_z_ const char *str)
 
switch_log_node_tswitch_log_node_dup (const switch_log_node_t *node)
 
void switch_log_node_free (switch_log_node_t **pnode)
 

Detailed Description

Simple Log.

Logging Routines

Definition in file switch_log.h.