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

Sebastian Damm damm at sipgate.de
Thu Aug 31 15:59:15 CEST 2017


Hi,

I think you are looking for cfg_rpc:
http://www.kamailio.net/docs/modules/5.0.x/modules/cfg_rpc.html

HTH
Sebastian

On Thu, Aug 31, 2017 at 12:53 PM, Karsten Horsmann <khorsmann at gmail.com> wrote:
> 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*
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>



More information about the sr-users mailing list