mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
enhance logger stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1123 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -47,6 +47,18 @@ extern "C" {
|
||||
|
||||
#include <switch.h>
|
||||
|
||||
typedef struct {
|
||||
char *data;
|
||||
char *file;
|
||||
char *func;
|
||||
char *content;
|
||||
uint32_t line;
|
||||
switch_log_level level;
|
||||
switch_time_t timestamp;
|
||||
} switch_log_node;
|
||||
|
||||
typedef switch_status (*switch_log_function)(const switch_log_node *node, switch_log_level level);
|
||||
|
||||
/*!
|
||||
\brief A method akin to printf that allows you to redirect output to a specific log
|
||||
*/
|
||||
|
||||
@@ -233,7 +233,6 @@ typedef enum {
|
||||
SWITCH_LOG_ALERT = 1,
|
||||
SWITCH_LOG_EMERG = 0
|
||||
} switch_log_level;
|
||||
typedef switch_status (*switch_log_function)(const char *data, switch_log_level level);
|
||||
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user