[sr-dev] [kamailio/kamailio] Kemi API xlog doesn't support log_facility configuration (#2064)

Daniel-Constantin Mierla notifications at github.com
Wed Sep 11 08:30:48 CEST 2019


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() ).

For Python, you can try to use the function from their syslog package:

  * https://docs.python.org/3.3/library/syslog.html

Like:

```
syslog.syslog(LOG_INFO| LOG_LOCAL2, "this is a log info message\")
```

It should not be needed to do openlog() in Python script, kamailio does it internally.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2064#issuecomment-530241378
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190910/5f8704cb/attachment.html>


More information about the sr-dev mailing list