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