add fsctl loglevel [<level>] fsctl command

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5790 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-10-03 23:43:01 +00:00
parent e44ad9588c
commit 1667112b3b
8 changed files with 39 additions and 8 deletions

View File

@@ -30,7 +30,8 @@
*
*/
#include <switch.h>
#include "private/switch_core_pvt.h"
struct switch_runtime runtime;
static const char *LEVELS[] = {
"EMERG",
@@ -166,6 +167,10 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel_t channel, const char
uint32_t len;
const char *extra_fmt = "%s [%s] %s:%d %s()%c%s";
if (level < runtime.hard_log_level) {
return;
}
va_start(ap, fmt);
handle = switch_core_data_channel(channel);