All depends on what you are trying to log/debug. If it is route block logic/troubleshooting a good method is to use XLOG items for what you are looking for within your route blocks.
Best method I have found…
http://kamailio.org/docs/modules/4.0.x/modules/xlog.html
-Aaron
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Keith
Sent: Wednesday, December 04, 2013 4:37 PM
To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List
Subject: [SR-Users] Logging and debugging
Hi guys,
Does anyone have any advice to good Kamailio logging and debugging? When you switch on debugging the file grows quickly and with information that isn't really required. My initial idea is to run through the code and make lots of comments but just wanted other peoples ideas/views.
Thanks, as always.
Keith