mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
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
This commit is contained in:
committed by
Friendly Automation
parent
5b9ac90531
commit
54ddf19141
12
doc/CHANGES-staging/logger_format.txt
Normal file
12
doc/CHANGES-staging/logger_format.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
Subject: logger
|
||||
|
||||
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. 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
|
Reference in New Issue
Block a user