On 01/10/07 19:48, Cristian Caprar wrote:
Thank you, I understand that, my question was which is the relation between the debug core parameter in OpenSER and the logging levels, since the value for the debug parameter is from 0 to 9, while the values for the logging levels is from -3 to 5, and 4 seems to log already debug messages to syslog.
debug is the threshold to print log messages, only the messages having the priority level lower than its value are printed.
L_DBG is 4, so when debug=4, DBG messages are printed -- basically debug can have any value in configuration file.
Cheers, Daniel
Thanks, Cristian
-----Original Message----- From: Daniel-Constantin Mierla [mailto:daniel@voice-system.ro] Sent: Wednesday, January 10, 2007 4:46 PM To: Cristian Caprar Cc: users@openser.org Subject: Re: [Users] Logging levels
Hello,
the log level should show the importance of the message (lower value
is
higher importance). More information you will find in syslog manual
page
(man syslog) - pasting from there:
<snip>
level This determines the importance of the message. The levels are, in order of decreasing importance:
LOG_EMERG system is unusable LOG_ALERT action must be taken immediately LOG_CRIT critical conditions LOG_ERR error conditions LOG_WARNING warning conditions LOG_NOTICE normal, but significant, condition LOG_INFO informational message LOG_DEBUG debug-level message
</snip>
Cheers, Daniel
On 01/10/07 17:30, Cristian Caprar wrote:
Can anyone explain the link between the debug core parameter and the logging levels used in the log functions (log and xlog)?
The levels start from -3 (ALERT) and go up to 5 (DEBUG), but the parameter value is from 0 to 9.
Thanks,
Cristian
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users