enhance logger stuff

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1123 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2006-04-12 14:41:35 +00:00
parent cf2bcc233a
commit 1bb893efae
4 changed files with 42 additions and 14 deletions
+12
View File
@@ -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
*/
-1
View File
@@ -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);
/*!