[OpenSIPS-Devel] [opensips] xlog - add option to prefix log messages with log level (#568)
Aron Podrigal
notifications at github.com
Tue Jul 7 18:59:53 CEST 2015
Then it would make more sense to have a global param to set the common template format for all xlog messages, something like
```
xlog_format = "[%L_LEVEL - %ROUTE_TYPE(%ROUTE_NAME) Line:%LINE_NO] %MSG"
xlog("L_ERR", "Failed to route to PSTN attempt($avp(relay_count))\n");
```
resulting in a syslog message like
```
Jul 7 05:49:52 hostname opensips[31929]: [ERR - failure_route(HANDLE_FAILURE) Line:954] Failed to route to PSTN attempt(3)
```
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/568#issuecomment-119267872
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150707/4a1726b7/attachment-0001.htm>
More information about the Devel
mailing list