2007-01-22 20:12:47 -05:00
|
|
|
<configuration name="console.conf" description="Console Logger">
|
|
|
|
<!-- pick a file name, a function name or 'all' -->
|
|
|
|
<!-- map as many as you need for specific debugging -->
|
|
|
|
<mappings>
|
2007-12-05 15:24:20 -05:00
|
|
|
<!--
|
2008-02-14 17:47:10 -05:00
|
|
|
name can be a file name, function name or 'all'
|
|
|
|
value is one or more of debug,info,notice,warning,err,crit,alert,all
|
|
|
|
See examples below
|
|
|
|
|
|
|
|
|
|
|
|
The following map is the default, which is all debug levels enabled:
|
|
|
|
<map name="all" value="debug,info,notice,warning,err,crit,alert"/>
|
|
|
|
|
|
|
|
|
|
|
|
Example: the following turns on debugging for error and critical levels only
|
|
|
|
<map name="all" value="err,crit"/>
|
|
|
|
|
|
|
|
NOTE: using map name="all" will override any other settings! If you
|
|
|
|
want a more specific set of console messages then you will need
|
|
|
|
to specify which files and/or functions you want to have debug
|
|
|
|
messages. One option is to turn on just the more critical
|
|
|
|
messages with map name="all", then specify the other types of
|
|
|
|
console messages you want to see for various files and functions.
|
|
|
|
|
|
|
|
Example: turn on ERROR, CRIT, ALERT for all modules, then specify other
|
|
|
|
levels for various modules and functions
|
|
|
|
|
|
|
|
<map name="all" value="err,crit,alert"/>
|
|
|
|
<map name="switch_loadable_module_process" value="all"/>
|
|
|
|
<map name="mod_local_stream.c" value="warning,debug"/>
|
|
|
|
<map name="mod_sndfile.c" value="warning,info,debug"/>
|
|
|
|
-->
|
2008-07-15 13:09:36 -04:00
|
|
|
<map name="all" value="console,debug,info,notice,warning,err,crit,alert"/>
|
2008-02-15 15:29:49 -05:00
|
|
|
|
|
|
|
<!--
|
|
|
|
You can use or modify this sample set of mappings. It turns on higher
|
|
|
|
level messages for all modules and then specifies extra lower level
|
|
|
|
messages for OpenZAP, Sofia, and switch core messages.
|
|
|
|
|
|
|
|
<map name="all" value="warning,err,crit,alert"/>
|
|
|
|
<map name="zap_analog.c" value="all"/>
|
|
|
|
<map name="zap_io.c" value="all"/>
|
|
|
|
<map name="zap_isdn.c" value="all"/>
|
|
|
|
<map name="zap_zt.c" value="all"/>
|
|
|
|
<map name="mod_openzap" value="all"/>
|
|
|
|
<map name="sofia.c" value="notice"/>
|
|
|
|
<map name="switch_core_state_machine.c" value="all"/>
|
|
|
|
|
|
|
|
-->
|
2007-01-22 20:12:47 -05:00
|
|
|
</mappings>
|
2007-02-28 13:28:07 -05:00
|
|
|
<settings>
|
2007-12-05 15:24:20 -05:00
|
|
|
<!-- comment or set to false for no color logging -->
|
|
|
|
<param name="colorize" value="true"/>
|
2008-09-29 11:53:36 -04:00
|
|
|
<param name="loglevel" value="$${console_loglevel}"/>
|
2007-02-28 13:28:07 -05:00
|
|
|
</settings>
|
2007-01-22 20:12:47 -05:00
|
|
|
</configuration>
|