After installing asterisk package from stable repo on Debian Buster, I can observe Asterisk are both logged in /var/log/asterisk/messages and /var/log/syslog (and maybe other files)
Your configuration does not log Asterisk messages to syslog.
If you disable system messages from syslog, you may find it difficult to get support when things go wrong. Changing the syslog settings is a purely OS issue, as, as noted, you haven’t enabled the use of syslog for Asterisk generated messages.
By “[y]our configuration”, do you mean “the data in logger.conf” ?
If positive, could it be a compilation option, then ?
I would really appreciate to learn about that.
I agree logs are mandatory for many reasons (diagnosis, auditing, …).
Maybe, I should simply:
turn off logging in /var/log/asterisk files as duplicating messages can create issue (the other day, I had a 17GB log file)
learn to work with a file gathering logs coming from (too ?) many sources
learn to tune Asterisk to Syslog logging as it currently produces lines cluttered with color espace sequences