mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user