Syslog support for Kannel

This patch implements syslog logging on bearerbox, smsbox and wapbox.

It uses two configurable parameters:

  • syslog-level (0-7) defines the desired logging level.
  • syslog-facility (string) defines the syslog facility to use. Default is “daemon”, but you can set any of the valid ones (kern, auth, local0..7, etc.).
To use it, you need to add syslog-level and syslog-facility to the core, smsbox and/or wapbox group. You might also need to tweak your /etc/syslog.conf to suit your needs (I won’t teach you how to configure syslog here, you can Google it yourself isn’t it? ;)).
The patch in its current state it will only work for bearerbox, smsbox and wapbox logs. It won’t log anything from SMSC connections nor the access log.

Please download the patch from here.

NOTE: This is fairly untested and it’s not part of Kannel’s main tree, so use it with caution.

Give it a spin and let me know if it works for you.

Alex

Comments (1)

GregJuly 11th, 2011 at 5:11 AM

Hi,

Is this patch made against the latest stable release (1.4.3) or the devel release (1.5)?

Thanks.