|
@@ -28,8 +28,8 @@
|
|
<title>Implemented Specifiers</title>
|
|
<title>Implemented Specifiers</title>
|
|
<para>
|
|
<para>
|
|
In the xlog function, you use pseudo-variables, that are a part
|
|
In the xlog function, you use pseudo-variables, that are a part
|
|
- of &kamailio; core and are used by other modules as well (e.g., avpops
|
|
|
|
- in the function avp_printf())
|
|
|
|
|
|
+ of &kamailio; core and are used by other modules as well (e.g., <emphasis>avpops</emphasis>
|
|
|
|
+ in the function <function>avp_printf()</function>)
|
|
</para>
|
|
</para>
|
|
<para>
|
|
<para>
|
|
The most important changes from earlier versions of &kamailio; are:
|
|
The most important changes from earlier versions of &kamailio; are:
|
|
@@ -93,7 +93,7 @@
|
|
</section>
|
|
</section>
|
|
<section>
|
|
<section>
|
|
<title>Parameters</title>
|
|
<title>Parameters</title>
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.p.buf_size">
|
|
<title><varname>buf_size</varname> (integer)</title>
|
|
<title><varname>buf_size</varname> (integer)</title>
|
|
<para>
|
|
<para>
|
|
Maximum size of the log message.
|
|
Maximum size of the log message.
|
|
@@ -112,7 +112,7 @@ modparam("xlog", "buf_size", 8192)
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.p.force_color">
|
|
<title><varname>force_color</varname> (integer)</title>
|
|
<title><varname>force_color</varname> (integer)</title>
|
|
<para>
|
|
<para>
|
|
When set to 1, forces color printing even if log_stderror=0.
|
|
When set to 1, forces color printing even if log_stderror=0.
|
|
@@ -131,7 +131,7 @@ modparam("xlog", "force_color", 0)
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.p.long_format">
|
|
<title><varname>long_format</varname> (integer)</title>
|
|
<title><varname>long_format</varname> (integer)</title>
|
|
<para>
|
|
<para>
|
|
When set to 1, prints config file name in xlogl() and xdbgl()
|
|
When set to 1, prints config file name in xlogl() and xdbgl()
|
|
@@ -151,7 +151,7 @@ modparam("xlog", "long_format", 1)
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.p.varname">
|
|
<title><varname>prefix</varname> (str)</title>
|
|
<title><varname>prefix</varname> (str)</title>
|
|
<para>
|
|
<para>
|
|
Prefix to be printed before the log message.
|
|
Prefix to be printed before the log message.
|
|
@@ -170,7 +170,7 @@ modparam("xlog", "prefix", "-xlog: ")
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.p.log_facility">
|
|
<title><varname>log_facility</varname> (string)</title>
|
|
<title><varname>log_facility</varname> (string)</title>
|
|
<para>
|
|
<para>
|
|
Syslog facility to be used when printing xlog messages.
|
|
Syslog facility to be used when printing xlog messages.
|
|
@@ -188,7 +188,7 @@ modparam("xlog", "log_facility", "LOG_DAEMON")
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.p.log_colors">
|
|
<title><varname>log_colors</varname> (string)</title>
|
|
<title><varname>log_colors</varname> (string)</title>
|
|
<para>
|
|
<para>
|
|
Update terminal colors used by core for log levels (when log_stderr=1
|
|
Update terminal colors used by core for log levels (when log_stderr=1
|
|
@@ -215,7 +215,7 @@ modparam("xlog", "log_colors", "L_ERR=cr;L_WARN=px")
|
|
</section>
|
|
</section>
|
|
<section>
|
|
<section>
|
|
<title>Functions</title>
|
|
<title>Functions</title>
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.f.xlog">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">xlog([ [facility,] level,] format)</function>
|
|
<function moreinfo="none">xlog([ [facility,] level,] format)</function>
|
|
</title>
|
|
</title>
|
|
@@ -318,7 +318,7 @@ xlog("LOG_LOCAL3", "L_ERR", "this message will be sent to syslog facility LOG_LO
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
|
|
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.f.xdbg">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">xdbg(format)</function>
|
|
<function moreinfo="none">xdbg(format)</function>
|
|
</title>
|
|
</title>
|
|
@@ -345,21 +345,21 @@ xdbg("time $Cbx[$Tf]$Cxx method ($rm) r-uri ($ru)\n");
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.f.xlogl">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">xlogl([ [facility,] level,] format)</function>
|
|
<function moreinfo="none">xlogl([ [facility,] level,] format)</function>
|
|
</title>
|
|
</title>
|
|
<para>
|
|
<para>
|
|
- Similar to xlog(), in addition is printing cfg line number
|
|
|
|
|
|
+ Similar to xlog(), in addition prints configuration file line number
|
|
at the beginning of message.
|
|
at the beginning of message.
|
|
</para>
|
|
</para>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="xlog.f.xdbgl">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">xdbgl(format)</function>
|
|
<function moreinfo="none">xdbgl(format)</function>
|
|
</title>
|
|
</title>
|
|
<para>
|
|
<para>
|
|
- Similar to xdbg(), in addition is printing cfg line number
|
|
|
|
|
|
+ Similar to xdbg(), in addition prints configuration file line number
|
|
at the beginning of message.
|
|
at the beginning of message.
|
|
</para>
|
|
</para>
|
|
</section>
|
|
</section>
|