allows pv_format specifier in prefix param

Pre-Submission Checklist

Type Of Change

Checklist:

Description

add prefix_mode param to xlog to optionally interpret prefix as a pv_format specifier.

config:

mod_param("xlog", "prefix", "$_s([$(cfg(file):$cfg(line)] $ci $(cfg(route){s.tolower}) )")
mod_param("xlog", "prefix_mode", 1)
...
xlog("L_INFO", "hello")
...

output:


66(307) INFO: [my-file.cfg:5] 62795aa2-9696c27c my_route hello


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/2845

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.