[Freeswitch-users] howto master logging in fs_cli

Cavalera Claudio Luigi Claudio.Cavalera at italtel.it
Thu Feb 19 02:02:30 PST 2009


Hello,
I'm trying to clarify behaviour of fs_cli
http://wiki.freeswitch.org/wiki/Fs_cli
After some experiments I'm still not sure on how to deal with logging.



For example:
---
root at lallobox:/usr/local/freeswitch/bin# ./fs_cli -d 6
           _____ ____     ____ _     ___
          |  ___/ ___|   / ___| |   |_ _|
          | |_  \___ \  | |   | |    | |
          |  _|  ___) | | |___| |___ | |
          |_|   |____/   \____|_____|___|

*****************************************************
* Anthony Minessale II, Ken Rice, Michael Jerris    *
* FreeSWITCH (http://www.freeswitch.org)            *
* Brought to you by ClueCon http://www.cluecon.com/ *
*****************************************************

Type /help <enter> to see a list of commands


[INFO] libs/esl/fs_cli.c:726 main() FS CLI Ready.
enter /help for a list of commands.
freeswitch at internal>
---

So I assume now I'm logging at level 6 in fs_cli,
instead I still see debug messages like this as in loglevel 7:
2009-02-19 10:53:29 [DEBUG] mod_event_socket.c:1856 listener_run()
Connection Open from 127.0.0.1:48400
2009-02-19 10:53:29 [DEBUG] mod_event_socket.c:1979 listener_run()
Session complete, waiting for children

To achieve a info loglevel i have to start fs_cli like this
./fs_cli -l info
or type /log info in the fs_cli console

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)


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. 
-----------------------------------------------------------------------------------------------------





More information about the FreeSWITCH-users mailing list