tweak the session level logging to work on the console too

This commit is contained in:
Anthony Minessale
2012-10-11 12:44:31 -05:00
parent a0049b2296
commit 4dae523bca
6 changed files with 29 additions and 4 deletions

View File

@@ -64,6 +64,7 @@ SWITCH_BEGIN_EXTERN_C
char *userdata;
/* To maintain abi, only add new elements to the end of this struct and do not delete any elements */
switch_text_channel_t channel;
switch_log_level_t slevel;
} switch_log_node_t;
typedef switch_status_t (*switch_log_function_t) (const switch_log_node_t *node, switch_log_level_t level);

View File

@@ -1030,7 +1030,8 @@ typedef enum {
SWITCH_LOG_CRIT = 2,
SWITCH_LOG_ALERT = 1,
SWITCH_LOG_CONSOLE = 0,
SWITCH_LOG_INVALID = 64
SWITCH_LOG_INVALID = 64,
SWITCH_LOG_UNINIT = 1000,
} switch_log_level_t;