[sr-dev] git:master:9775841f: core: new option for json logging to print message in json format

Daniel-Constantin Mierla miconda at gmail.com
Fri Nov 12 10:43:42 CET 2021


Module: kamailio
Branch: master
Commit: 9775841f5f821b37395504a5d2a9026eaceacb61
URL: https://github.com/kamailio/kamailio/commit/9775841f5f821b37395504a5d2a9026eaceacb61

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-11-12T10:38:04+01:00

core: new option for json logging to print message in json format

- option 'j' - if the log message starts with '{' and ends with '}',
then it is expected to be a json document, printed as it is in the
message value, otherwise it is printed as field "text"

---

Modified: src/core/dprint.c

---

Diff:  https://github.com/kamailio/kamailio/commit/9775841f5f821b37395504a5d2a9026eaceacb61.diff
Patch: https://github.com/kamailio/kamailio/commit/9775841f5f821b37395504a5d2a9026eaceacb61.patch




More information about the sr-dev mailing list