Hi,
I added two new functions to xlog (modules_k):
- xlogl(level, message) - xdbgl(message)
They are similar to the existing functions, in addition they print the config line at the beginning of the message. The printed value is:
"cfglineno:message"
In this way you can spot easily in the logs where the function was used to print a particular message.
http://sip-router.org/docbook/sip-router/branch/master/modules_k/xlog/xlog.h...
Regards, Ramona
El Lunes, 1 de Febrero de 2010, Elena-Ramona Modroiu escribió:
Hi,
I added two new functions to xlog (modules_k):
- xlogl(level, message)
- xdbgl(message)
They are similar to the existing functions, in addition they print the config line at the beginning of the message. The printed value is:
"cfglineno:message"
In this way you can spot easily in the logs where the function was used to print a particular message.
http://sip-router.org/docbook/sip-router/branch/master/modules_k/xlog/xlog. html
Great! What about when there are "include"?
Iñaki Baz Castillo wrote:
El Lunes, 1 de Febrero de 2010, Elena-Ramona Modroiu escribió:
Hi,
I added two new functions to xlog (modules_k):
- xlogl(level, message)
- xdbgl(message)
They are similar to the existing functions, in addition they print the config line at the beginning of the message. The printed value is:
"cfglineno:message"
In this way you can spot easily in the logs where the function was used to print a particular message.
http://sip-router.org/docbook/sip-router/branch/master/modules_k/xlog/xlog. html
Great! What about when there are "include"?
it is the line in the included file. xlog has now also the reference to the file name, but I haven't printed it not to get the message too long. Could be added a module parameter to control it if people find that useful.
Regards, Ramona
Elena-Ramona Modroiu wrote:
Iñaki Baz Castillo wrote:
El Lunes, 1 de Febrero de 2010, Elena-Ramona Modroiu escribió:
Hi,
I added two new functions to xlog (modules_k):
- xlogl(level, message)
- xdbgl(message)
They are similar to the existing functions, in addition they print the config line at the beginning of the message. The printed value is:
"cfglineno:message"
In this way you can spot easily in the logs where the function was used to print a particular message.
http://sip-router.org/docbook/sip-router/branch/master/modules_k/xlog/xlog.
html
Great! What about when there are "include"?
it is the line in the included file. xlog has now also the reference to the file name, but I haven't printed it not to get the message too long. Could be added a module parameter to control it if people find that useful.
Added a new xlog module parameter long_format for tuning this behavior. http://sip-router.org/docbook/sip-router/branch/master/modules_k/xlog/xlog.h...
Regards, Ramona
El Jueves, 4 de Febrero de 2010, Elena-Ramona Modroiu escribió:
it is the line in the included file. xlog has now also the reference to the file name, but I haven't printed it not to get the message too long. Could be added a module parameter to control it if people find that useful.
Added a new xlog module parameter long_format for tuning this behavior. http://sip-router.org/docbook/sip-router/branch/master/modules_k/xlog/xlog. html#id2784730
Great!
On 02/01/2010 05:50 AM, Elena-Ramona Modroiu wrote:
- xlogl(level, message)
- xdbgl(message)
They are similar to the existing functions, in addition they print the config line at the beginning of the message. The printed value is:
"cfglineno:message"
What an excellent enhancement! Thanks Elena!