]> git.ipfire.org Git - thirdparty/asterisk.git/commit
logger.c: Added a new log formatter called "plain"
authorGeorge Joseph <gjoseph@digium.com>
Fri, 14 Aug 2020 16:13:33 +0000 (10:13 -0600)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 28 Aug 2020 17:27:51 +0000 (12:27 -0500)
commitddaf9751e97d61fefebb7b136302d6dcc7d33d9f
treeea1967b71b77a6453d24c4ce0a108e41224b5827
parent7f5cc9ad289605384169c180c8c3b24cd1f7f70f
logger.c: Added a new log formatter called "plain"

Added a new log formatter called "plain" that always prints
file, function and line number if available (even for verbose
messages) and never prints color control characters.  It also
doesn't apply any special formatting for verbose messages.
Most suitable for file output but can be used for other channels
as well.

You use it in logger.conf like so:
debug => [plain]debug
console => [plain]error,warning,debug,notice,pjsip_history
messages => [plain]warning,error,verbose

Change-Id: I4fdfe4089f66ce2f9cb29f3005522090dbb5243d
configs/samples/logger.conf.sample
doc/CHANGES-staging/logger_format.txt [new file with mode: 0644]
main/logger.c