[Serusers] xlog level and loglevel iin ser.cfg

Michal Matyska michal at iptel.org
Fri Dec 22 23:17:10 CET 2006


Yes, you won't see messages with level higher than debug=<debug> level.

E.g. xlog("L_INFO","INFO"); won't output anything unless debug=3 or
higher is set (or ser -ddd executed).

L_ALERT =-3
L_CRIT  =-2
L_ERR   =-1
 - all these are <0 so you will see then anytime (you can't set debug<0)
L_WARN   =1
L_NOTICE =2
L_INFO   =3
L_DBG    =4

Note, that only the third letter is used, so you can put
xlog("L_D","DEBUG");

Michal

On Fri, 2006-12-22 at 22:35 +0100, TZieleniewski wrote:
> Hi
> 
> How does the log level in the module xlog module corresponds to the 
> loglevel parameter defined in the ser.cfg file?
> Is there any relation?
> 
> Best
> tomasz




More information about the sr-users mailing list