<p>The xlog module is not exported to KEMI, probably it should be addressed to make those functions available to all scripting languages. Right now the basic logging functions are exported from core (e.g., KSR.xinfo() ).</p>
<p>For Python, you can try to use the function from their syslog package:</p>
<ul>
<li><a href="https://docs.python.org/3.3/library/syslog.html" rel="nofollow">https://docs.python.org/3.3/library/syslog.html</a></li>
</ul>
<p>Like:</p>
<pre><code>syslog.syslog(LOG_INFO| LOG_LOCAL2, "this is a log info message\")
</code></pre>
<p>It should not be needed to do openlog() in Python script, kamailio does it internally.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2064?email_source=notifications&email_token=ABO7UZLUSDANB2WNAXNZLELQJCGBRA5CNFSM4IVKL6QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NNOYQ#issuecomment-530241378">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIAPWPIGIF3KPOI6E3QJCGBRANCNFSM4IVKL6QA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZL6XC5MSZSKZZ55XHDQJCGBRA5CNFSM4IVKL6QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NNOYQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2064?email_source=notifications\u0026email_token=ABO7UZLUSDANB2WNAXNZLELQJCGBRA5CNFSM4IVKL6QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NNOYQ#issuecomment-530241378",
"url": "https://github.com/kamailio/kamailio/issues/2064?email_source=notifications\u0026email_token=ABO7UZLUSDANB2WNAXNZLELQJCGBRA5CNFSM4IVKL6QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NNOYQ#issuecomment-530241378",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>