[SR-Users] Debugging and syslog
Konstantin M.
evilzluk at gmail.com
Tue Nov 27 04:25:19 CET 2012
If you're running Debian - try out my solution:
1) Edit /etc/rsyslog.d/50-default.conf (or /etc/rsyslog.conf, whatever are
located default values for *.*)
and change from:
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
to:
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none,\
local0.none -/var/log/syslog
(just add local0.none)
2) Create new file: /etc/rsyslog.d/kamailio.conf:
local0.* -/var/log/kamailio/kamailio.log
3) Create log directory: # mkdir /var/log/kamailio/
4) Create log file: # touch /var/log/kamailio/kamailio.log
5) Restart rsyslog: # invoke-rc.d rsyslog restart
I have the following configuration of logging:
#!ifdef WITH_DEBUG
debug=4
log_stderror=yes
#!else
debug=2
log_stderror=no
#!endif
memdbg=5
memlog=5
log_facility=LOG_LOCAL0
2012/11/27 Daniel W. Graham <dan at cmsinter.net>
> Thanks for the reply -
>
> I have done that with no luck.
>
> -----Original Message-----
> From: sr-users-bounces at lists.sip-router.org [mailto:
> sr-users-bounces at lists.sip-router.org] On Behalf Of Iwan Budi Kusnanto
> Sent: Monday, November 26, 2012 10:10 PM
> To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
> Mailing List
> Subject: Re: [SR-Users] Debugging and syslog
>
> touch the log file?
> restart rsyslog?
>
> On Tue, Nov 27, 2012 at 3:38 AM, Daniel W. Graham <dan at cmsinter.net>
> wrote:
> > Hello,
> >
> > Reaching out for some assistance with debugging, I am not seeing any
> > xlog messages in my log file. If there is any other info I didn’t
> > include that would be helpful please let me know.
> >
> >
> >
> > Any ideas are appreciated.
> >
> >
> >
> > Using Kamailio 3.3.2 & Cent OS 6
> >
> >
> >
> > Rsyslog.conf
> >
> > --------------------
> >
> > *.info;mail.none;authpriv.none;cron.none;local0.none /var/log/messages
> >
> > # Kamailio
> >
> > local0.*
> -/var/log/kamailio
> >
> >
> >
> >
> >
> > Kamailio CFG
> >
> > ------------------------------
> >
> > #!define WITH_DEBUG
> >
> >
> >
> > #!ifdef WITH_DEBUG
> >
> > debug=4
> >
> > log_stderror=yes
> >
> > #!else
> >
> > debug=2
> >
> > log_stderror=no
> >
> > #!endif
> >
> >
> >
> > log_facility=LOG_LOCAL0
> >
> >
> >
> > loadmodule "xlog.so"
> >
> >
> >
> > Example xlog-
> >
> >
> >
> > xlog("L_INFO", "No more gateways \n");
> >
> >
> >
> > Thanks,
> >
> > Dan-
> >
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> > list sr-users at lists.sip-router.org
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >
>
>
>
> --
> Iwan Budi Kusnanto
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121127/9ef646db/attachment.htm>
More information about the sr-users
mailing list