[SR-Users] Change on the fly logging verbosity - Kamailio v5.0.2

Karsten Horsmann khorsmann at gmail.com
Thu Aug 31 12:53:38 CEST 2017


Hello,


at this moment i try to figure out the best way to add an "switch" for
debug/log output.
I use many xlog, like everyone that starts with kamailio too.

Then i go further and add #!ifdef cases around to switch this via #!define.

Is there any other way to turn on/off my "debug"-logging on the fly, while
kamailio is still running?



#!define TESTBED_MODE

request_route{
...
#!ifdef TESTBED_MODE
        route(DEBUG);
#!endif

...
#!ifdef TESTBED_MODE
                xlog("L_INFO","---FIX_SIPS-after: ru:($ru)");
#!endif
...
}

-- 
Kind Regards
*Karsten Horsmann*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170831/c66d83e3/attachment.html>


More information about the sr-users mailing list