Explain syslog logging better in sample logging config

This commit is contained in:
Piotr F. Mieszkowski 2022-05-13 21:57:29 +02:00
parent 11b78ce0fb
commit d8bef9cdb0

View file

@ -1,19 +1,23 @@
# Example configuration for Lacre logging. If you don't intend to change the
# log format, you can just keep this file unchanged.
# HANDLERS:
#
# Two main targets for log entries are defined here: syslog and a plain text
# log file. They are available as "handlers" named "syslog" and "lacrelog"
# respectively.
[loggers]
keys=root
[logger_root]
level=NOTSET
# Append ",syslog" to the following line if you want to send entries
# to syslog too.
handlers=lacrelog
# Comma-separated handler names, see HANDLERS note at the top.
handlers=syslog
[handlers]
# Append ",syslog" to the following line if you want to send entries
# to syslog too.
keys=lacrelog
# Comma-separated handler names, see HANDLERS note at the top.
keys=syslog
[formatters]
keys=postfixfmt
@ -29,10 +33,14 @@ level=DEBUG
formatter=postfixfmt
args=('test/logs/lacre.log', 'a+')
# You may want to change the second argument (handlers.SysLogHandler.LOG_MAIL)
# to change the syslog facility used to record messages from Lacre.
#
# Logging to syslog is disabled by default, but you can enable it if
# you like.
# Options you can consider are "localX" facilities, available under names from
# handlers.SysLogHandler.LOG_LOCAL0 to handlers.SysLogHandler.LOG_LOCAL7.
#
# Please refer to your syslog configuration for details on how to separate
# records from different facilities.
[handler_syslog]
class=handlers.SysLogHandler
level=INFO