Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] howto master logging in fs_cli


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
Claudio.Cavalera at it...
Guest





PostPosted: Thu Feb 19, 2009 5:14 am    Post subject: [Freeswitch-users] howto master logging in fs_cli Reply with quote

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


_______________________________________________
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
Back to top
jason at jasonjgw.net
Guest





PostPosted: Thu Feb 19, 2009 5:24 am    Post subject: [Freeswitch-users] howto master logging in fs_cli Reply with quote

Cavalera Claudio Luigi <Claudio.Cavalera@italtel.it> wrote:
Quote:
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.


_______________________________________________
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
Back to top
Claudio.Cavalera at it...
Guest





PostPosted: Thu Feb 19, 2009 6:20 am    Post subject: [Freeswitch-users] howto master logging in fs_cli Reply with quote

freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
Cavalera Claudio Luigi <Claudio.Cavalera@italtel.it> wrote:
Quote:
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.


Ah thanks,
it was a bit confusing for me also because /log expects a key word such
as "info" instead of the number "6".
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Claudio.Cavalera at it...
Guest





PostPosted: Wed Mar 04, 2009 7:04 am    Post subject: [Freeswitch-users] howto master logging in fs_cli Reply with quote

freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
Cavalera Claudio Luigi <Claudio.Cavalera@italtel.it> wrote:
Quote:
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Wed Mar 04, 2009 7:59 am    Post subject: [Freeswitch-users] howto master logging in fs_cli Reply with quote

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
logfile.conf.xml

Math

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

Quote:
freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
Cavalera Claudio Luigi <Claudio.Cavalera@italtel.it> wrote:
Quote:
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
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
Back to top
Claudio.Cavalera at it...
Guest





PostPosted: Wed Mar 04, 2009 10:18 am    Post subject: [Freeswitch-users] howto master logging in fs_cli Reply with quote

freeswitch-users-bounces@lists.freeswitch.org wrote:
Quote:
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
logfile.conf.xml

Math


Ah ok, so it's better to keep switch.conf.xml to debug and then to
adjust the single sources to lower logging levels.
I have also put these lines in a rc.freeswitch script before starting
freeswitch
export SOFIA_DEBUG=9
export NUA_DEBUG=9
export NTA_DEBUG=9
export TPORT_DEBUG=9
export TPORT_LOG=1
becase I wanted to have all the sofia output redirected to a different
logfile but it does not work.

Instead if on any console I use fs_cli I see there the sofia stuff, how
does that work?

Thanks,
Claudio
Internet E. Mail 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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services