On 12/21/12 5:15 PM, Olle E. Johansson wrote:
21 dec 2012 kl. 17:10 skrev Ovidiu Sas
<osas(a)voipembedded.com>om>:
For your own logs:
I usually declare a shared variable called "debug" in the pv module modparams.
When logging i do
if ($shv(debug) > 0)
xlog(....)
All shared variables, like Daniel said, can be changed with kamctl/sercmd.
More for
the sake of archiving, one can even do:
xlog("$shv(debug)", ...);
and if $shv(debug) > than the value of debug parameter, then the message
is not printed, otherwise will be printed to the level corresponding to
its value.
Cheers,
Daniel
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda