[SR-Users] Extending app_python (patch)
Konstantin M.
evilzluk at gmail.com
Mon May 14 23:57:52 CEST 2012
Hi,
As I see, app_python module has almost no logging functionality except
LM_ERR.
As a python developer and user I need a more python functionality.
did a patch (attached) against kamailio-3.2.3 for adding an additional
logging and I'd like to share it.
Testcase:
0(5403) INFO: app_python [python_iface.c:41]: Loggers.py: LM_GEN1:
msg: Test Message
0(5403) WARNING: app_python [python_iface.c:60]: Loggers.py: LM_GEN2:
msg: Test Message
0(5403) ALERT: app_python [python_iface.c:76]: Loggers.py: LM_ALERT:
msg: Test Message
0(5403) CRITICAL: app_python [python_iface.c:92]: Loggers.py: LM_CRIT:
msg: Test Message
0(5403) ERROR: app_python [python_iface.c:108]: Loggers.py: LM_ERR:
msg: Test Message
0(5403) WARNING: app_python [python_iface.c:124]: Loggers.py: LM_WARN:
msg: Test Message
0(5403) NOTICE: app_python [python_iface.c:140]: Loggers.py: LM_NOTICE:
msg: Test Message
0(5403) INFO: app_python [python_iface.c:156]: Loggers.py: LM_INFO:
msg: Test Message
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120515/aacfd08a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio-3.2.3--app_python-loggers.diff
Type: application/octet-stream
Size: 8902 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120515/aacfd08a/attachment.obj>
More information about the sr-users
mailing list