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
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel