Hello,

From my opinion, the logging itself will be a performance killer, not appending the pseudo variables to the log string - which should consist just in fast memory operations.
Make sure you have "-" before the filename though for asynchronous writing to the log file (syslog.conf).
Finally, you might want to consider turning lowering the debug level (e.g. set debug level to 2) when you switch to production.

Best regards,
Marius


From: Bernhard Suttner <bernhard.suttner@winet.ch>
To: sr-users@lists.sip-router.org
Sent: Sat, January 29, 2011 11:02:40 PM
Subject: [SR-Users] xlogl and pseudo variables

Hi,

I am using xlogl for debugging and logging the most important actions within the kamailio script. Does it take much resources if I use the pseudo variables with the xlogl statements? Example:

xlogl("L_NOTICE", "Route $rm to destination! F=$fu T=$tu IP=$si \n");

I´m planning to do this in all the xlogl statements to be able to debug / "see whats going on" on the system.

Thanks in advance.

Best regard,
Bernhard

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users