[asterisk-users] different logs in messages vs syslog
Fourhundred Thecat
400thecat at gmx.ch
Sun Oct 20 05:14:53 CDT 2019
Hello,
I am logging into messages and also to syslog.
Here is my /etc/asterisk/logger.conf:
messages => notice,warning,error,verbose
syslog.local0 => notice,warning,error,verbose
But the logs look different:
[2019-10-20 12:02:06] VERBOSE[7609][C-00000013] pbx.c:
Executing [1111 at fullaccess:1] Answer("SIP/2222-0000000c",
"") in new stack
vs.
2019-10-20 12:02:06 VERBOSE[7609][C-00000013]: pbx.c:2925 in
pbx_extension_helper: Executing [1111 at fullaccess:1]
Answer("SIP/2222-0000000c", "") in new stack
specifically, the messages coming from syslog have extra information
(which I am not interested in):
such as:
pbx.c: Executing ...
pbx.c:2925 in pbx_extension_helper: Executing ...
or,
netsock2.c: Using SIP RTP CoS mark 5
netsock2.c:661 in ast_set_qos: Using SIP RTP CoS mark 5
(I have aligned them for better readability)
How can I get rid of the unwanted extra information ?
thanks,
More information about the asterisk-users
mailing list