Hi, list! I've installed FreeSWITCH Version 1.2.3+git~20120920T220849Z~f718a5e8e6 (1.2.3; git at commit f718a5e8e6 on Thu, 20 Sep 2012 22:08:49 Z). I decide to decrease console log level. To achieve this goal I edited console.conf.xml file and replace some string: from <mappings> <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="info"/> </settings> to <mappings> <map name="all" value="err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="err"/> </settings> and then restart freeswitch But when I run fs_cli there still present debug, info, etc, messages. Console log level decreased only after I changed in swintch.conf.xml file loglevel param from debug to err - this method is not suited to me because it decrease log level in freeswitch.log too. How can I properly tune FS to achive my goal? -- Best regards, Vitaly.
Hi, You can set the log level when connecting to fs: fs_cli -l 0 or fs_cli --loglevel=0 On Wed, 2012-10-24 at 13:44 +0400, Виталий Давудов wrote:
Hi, list! I've installed FreeSWITCH Version 1.2.3+git~20120920T220849Z~f718a5e8e6 (1.2.3; git at commit f718a5e8e6 on Thu, 20 Sep 2012 22:08:49 Z). I decide to decrease console log level. To achieve this goal I edited console.conf.xml file and replace some string: from <mappings> <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="info"/> </settings> to <mappings> <map name="all" value="err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="err"/> </settings> and then restart freeswitch But when I run fs_cli there still present debug, info, etc, messages. Console log level decreased only after I changed in swintch.conf.xml file loglevel param from debug to err - this method is not suited to me because it decrease log level in freeswitch.log too.
How can I properly tune FS to achive my goal?
-- Un cordial saludo / Best regards, _________________________ António Silva E-mail:asilva@wirelessmundi.com
See this: http://wiki.freeswitch.org/wiki/Fs_cli#Configuration_Options 24.10.2012 12:44, Виталий Давудов пишет:
Hi, list! I've installed FreeSWITCH Version 1.2.3+git~20120920T220849Z~f718a5e8e6 (1.2.3; git at commit f718a5e8e6 on Thu, 20 Sep 2012 22:08:49 Z). I decide to decrease console log level. To achieve this goal I edited console.conf.xml file and replace some string: from <mappings> <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="info"/> </settings> to <mappings> <map name="all" value="err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="err"/> </settings> and then restart freeswitch But when I run fs_cli there still present debug, info, etc, messages. Console log level decreased only after I changed in swintch.conf.xml file loglevel param from debug to err - this method is not suited to me because it decrease log level in freeswitch.log too.
How can I properly tune FS to achive my goal?
-- Evgeniy Movlyan, BestNet Ltd.
Evgeniy, thanks a lot! I think it's help me. But still I am concerned about the question: why should there be modules mod_console and mod_logfile, if loglevel is covered in the switch.conf.xml? 24.10.2012 14:59, Evgeniy Movlyan пишет:
See this: http://wiki.freeswitch.org/wiki/Fs_cli#Configuration_Options
24.10.2012 12:44, Виталий Давудов пишет:
Hi, list! I've installed FreeSWITCH Version 1.2.3+git~20120920T220849Z~f718a5e8e6 (1.2.3; git at commit f718a5e8e6 on Thu, 20 Sep 2012 22:08:49 Z). I decide to decrease console log level. To achieve this goal I edited console.conf.xml file and replace some string: from <mappings> <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="info"/> </settings> to <mappings> <map name="all" value="err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="err"/> </settings> and then restart freeswitch But when I run fs_cli there still present debug, info, etc, messages. Console log level decreased only after I changed in swintch.conf.xml file loglevel param from debug to err - this method is not suited to me because it decrease log level in freeswitch.log too.
How can I properly tune FS to achive my goal?
-- Best regards, Vitaly.
mod_logfile is responsible for storing and rotating log files and mod_console just lets the user control the console messages. Variables in switch.conf.xml are global. 24.10.2012 14:30, Виталий Давудов пишет:
Evgeniy, thanks a lot! I think it's help me.
But still I am concerned about the question: why should there be modules mod_console and mod_logfile, if loglevel is covered in the switch.conf.xml?
24.10.2012 14:59, Evgeniy Movlyan пишет:
See this: http://wiki.freeswitch.org/wiki/Fs_cli#Configuration_Options
24.10.2012 12:44, Виталий Давудов пишет:
Hi, list! I've installed FreeSWITCH Version 1.2.3+git~20120920T220849Z~f718a5e8e6 (1.2.3; git at commit f718a5e8e6 on Thu, 20 Sep 2012 22:08:49 Z). I decide to decrease console log level. To achieve this goal I edited console.conf.xml file and replace some string: from <mappings> <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="info"/> </settings> to <mappings> <map name="all" value="err,crit,alert"/> </mappings> <settings> <param name="loglevel" value="err"/> </settings> and then restart freeswitch But when I run fs_cli there still present debug, info, etc, messages. Console log level decreased only after I changed in swintch.conf.xml file loglevel param from debug to err - this method is not suited to me because it decrease log level in freeswitch.log too.
How can I properly tune FS to achive my goal?
-- Evgeniy Movlyan, BestNet Ltd.
participants (3)
-
Antonio
-
Evgeniy Movlyan
-
Виталий Давудов