Different Logs In Messages Vs Syslog

Home » Asterisk Users » Different Logs In Messages Vs Syslog
Asterisk Users No Comments

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@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@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,