<p>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).</p>

<p>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 <a href="https://github.com/zabbal" class="user-mention">@zabbal</a> can do it and provide some feedback. Info about how to use it are in the readme:</p>

<ul>
<li><a href="http://kamailio.org/docs/modules/devel/modules/log_systemd.html#idp1223624">http://kamailio.org/docs/modules/devel/modules/log_systemd.html#idp1223624</a></li>
</ul>

<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/370#issuecomment-149862281">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSPuLHMf9j5o6_55t1W39EOPloM-ks5o93DdgaJpZM4GPaeS.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/370#issuecomment-149862281"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>