[Freeswitch-users] howto master logging in fs_cli

Mathieu Rene mrene_lists at avgs.ca
Wed Mar 4 04:49:06 PST 2009

fsctl loglevel [xxx] tells the core to ignore log messages not at  
least that level. They wont get logged, you wont see them on the  
console and no events will be generated.

console loglevel [xxx] (on the "real" console) tells mod_console to do  
that filtering.
/log [xxx] tells fs_cli to do the filtering.

It all depends where you filter it, if you want to change the  
logfile's level without affecting anything else, I recommand you edit  


On 4-Mar-09, at 6:41 AM, Cavalera Claudio Luigi wrote:

> freeswitch-users-bounces at lists.freeswitch.org wrote:
>> freeswitch-users-bounces at lists.freeswitch.org wrote:
>>> Cavalera Claudio Luigi <Claudio.Cavalera at italtel.it> wrote:
>>>> So could you please someone more expert with me clarify the
>>>> difference between -d and -l options so that I can update the wiki
>>>> which is now wrong/incomplete ?
>>>>  -l, --loglevel=command          Log Level
>>>>  -q, --quiet                             Disable logging
>>>>  -d, --debug=level               Debug Level (0 - 7)
>>> The difference is that -d controls the level of debugging output
>>> generated by fs_cli itself. The log level controls which log  
>>> messages
>>> from your running FreeSWITCH daemon are printed to the fs_cli
>>> console.
> Could you please explain why if I issue this command in fs_cli:
> "fsctl loglevel warning"
> to lower the log level in output file freeswitch.log
> but then I can't have level debug in fs_cli even if I re-set it with
> "/log debug"
> The fsctl loglevel (which I guess is the same as the global loglevel  
> in
> switch.conf.xml) must always be higher than loglevel in fs_cli?
> If correct, is this true also for the console_loglevel ?
> Thanks,
> Claudio
> Internet Email Confidentiality Footer
> -----------------------------------------------------------------------------------------------------
> La presente comunicazione, con le informazioni in essa contenute e  
> ogni documento o file allegato, e' rivolta unicamente alla/e persona/ 
> e cui e' indirizzata ed alle altre da questa autorizzata/e a  
> riceverla. Se non siete i destinatari/autorizzati siete avvisati che  
> qualsiasi azione, copia, comunicazione, divulgazione o simili basate  
> sul contenuto di tali informazioni e' vietata e potrebbe essere  
> contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia  
> di protezione dei dati personali). Se avete ricevuto questa  
> comunicazione per errore, vi preghiamo di darne immediata notizia al  
> mittente e di distruggere il messaggio originale e ogni file  
> allegato senza farne copia alcuna o riprodurne in alcun modo il  
> contenuto.
> This e-mail and its attachments are intended for the addressee(s)  
> only and are confidential and/or may contain legally privileged  
> information. If you have received this message by mistake or are not  
> one of the addressees above, you may take no action based on it, and  
> you may not copy or show it to anyone; please reply to this e-mail  
> and point out the error which has occurred.
> -----------------------------------------------------------------------------------------------------
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

More information about the FreeSWITCH-users mailing list