[Freeswitch-svn] [commit] r7516 - in freeswitch/trunk: conf/autoload_configs src/mod/loggers/mod_console

Freeswitch SVN brian at freeswitch.org
Mon Feb 4 13:22:30 EST 2008


Author: brian
Date: Mon Feb  4 13:22:29 2008
New Revision: 7516

Modified:
   freeswitch/trunk/conf/autoload_configs/console.conf.xml
   freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c

Log:
add default loglevel for mod_console

Modified: freeswitch/trunk/conf/autoload_configs/console.conf.xml
==============================================================================
--- freeswitch/trunk/conf/autoload_configs/console.conf.xml	(original)
+++ freeswitch/trunk/conf/autoload_configs/console.conf.xml	Mon Feb  4 13:22:29 2008
@@ -11,5 +11,6 @@
   <settings>
     <!-- comment or set to false for no color logging -->
     <param name="colorize" value="true"/>
+    <param name="loglevel" value="info"/>
   </settings>
 </configuration>

Modified: freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c
==============================================================================
--- freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	(original)
+++ freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	Mon Feb  4 13:22:29 2008
@@ -139,6 +139,9 @@
 				COLORIZE = 1;
 #endif
 			}
+			if (!strcasecmp(var, "loglevel")) {
+				hard_log_level = switch_log_str2level(val);
+			}
 		}
 	}
 



More information about the Freeswitch-svn mailing list