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
+2 -2
View File
@@ -46,12 +46,12 @@ static switch_loadable_module_interface console_module_interface = {
/*.directory_interface */ NULL
};
static switch_status switch_console_logger(const char *data, switch_log_level level)
static switch_status switch_console_logger(const switch_log_node *node, switch_log_level level)
{
FILE *handle;
if ((handle = switch_core_data_channel(SWITCH_CHANNEL_ID_LOG))) {
fprintf(handle, data);
fprintf(handle, node->data);
}
return SWITCH_STATUS_SUCCESS;