[sr-dev] [kamailio] log to journald directly (#370)

Daniel-Constantin Mierla notifications at github.com
Wed Oct 21 13:39:09 CEST 2015


I pushed this morning a framework allowing to change the 'syslog' function with another one. As sample implementation I added log_custom module which sends the log messages via udp to a configured address and port (it was easier for me to test).

The log_systemd was enhanced to replace the syslog() with a wrapper around sd_journal_print() -- however, I didn't have the time to test it as I am lacking systemd familiarity, hopefully @zabbal can do it and provide some feedback. Info about how to use it are in the readme:

  * http://kamailio.org/docs/modules/devel/modules/log_systemd.html#idp1223624

Depending on what the new logging needs to initialize, log messages are diverted from syslog either when module is loaded or module is initialized. Before that, the log messages are stored in syslog.

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/370#issuecomment-149862281
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151021/1da742c2/attachment.html>


More information about the sr-dev mailing list