<div dir="ltr">Hello,<div><br></div><div><br></div><div>at this moment i try to figure out the best way to add an "switch" for debug/log output.</div><div>I use many xlog, like everyone that starts with kamailio too. </div><div><br></div><div>Then i go further and add #!ifdef cases around to switch this via #!define.</div><div><br></div><div>Is there any other way to turn on/off my "debug"-logging on the fly, while kamailio is still running?</div><div><br></div><div><br></div><div><br><div>#!define TESTBED_MODE<br></div><div><br></div><div>request_route{ </div><div><div>...</div><div>#!ifdef TESTBED_MODE</div><div>        route(DEBUG);</div><div>#!endif</div><div><br></div><div>...</div><div><div>#!ifdef TESTBED_MODE</div><div>                xlog("L_INFO","---FIX_SIPS-after: ru:($ru)");</div><div>#!endif</div></div><div>...</div><div>}</div><div><br></div>-- <br><div class="gmail_signature">Kind Regards<br>*Karsten Horsmann*<br></div>
</div></div></div>