Difference between log in fs_cli and written to file
Can I have different levels of log level in fs_cli and in freeswitch.log? I would like to only have error level in freeswitch.log, and debug level in fs_cli. Changing <param name="loglevel" value="debug"/> in switch.conf.xml changes everything - it seems.
The switch.conf.xml setting controls a filter in the core that affects all logging. You can adjust it at runtime with the fsctl API. The logging level to freeswitch.log is controlled through the <mappings> section, which doesn't seem to be documented on Confluence or the old Wiki yet. Look at conf/vanilla/autoload_configs/console.conf.xml in the git repo for a description of those settings. Essentially you list the levels to log in the 'all' mapping in most use cases. fs_cli picks it's own loglevel by either through an argument or the /log command. -Steve On 30 October 2015 at 13:18, Michael Nielsen <mic.niel84@gmail.com> wrote:
Can I have different levels of log level in fs_cli and in freeswitch.log?
I would like to only have error level in freeswitch.log, and debug level in fs_cli.
Changing <param name="loglevel" value="debug"/> in switch.conf.xml changes everything - it seems.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Michael Nielsen
-
Steven Ayre