#--------------------------------------------------------------------------------
# Logging configuration for web2ldap
#
# see format in Python 3.x library docs:
# https://docs.python.org/3/library/logging.config.html#configuration-file-format
#--------------------------------------------------------------------------------

[loggers]
keys=root,syslog,console

[handlers]
keys=syslog,console

[formatters]
keys=syslog,console

[logger_root]
handlers=syslog,console
level=INFO
qualname=web2ldap

[logger_syslog]
handlers=syslog
level=INFO
propagate=0
facility=local7
qualname=web2ldap.syslog

[handler_syslog]
class=logging.handlers.SysLogHandler
formatter=syslog
facility=CRON
args=('/dev/log',)

[formatter_syslog]
class=logging.Formatter
format=%(name)s[%(process)d] %(levelname)s - %(message)s
datefmt=

[logger_console]
handlers=console
level=INFO
propagate=0
qualname=web2ldap.console

[handler_console]
class=logging.StreamHandler
formatter=console
args=(sys.stderr,)

[formatter_console]
class=logging.Formatter
format=%(asctime)s - %(name)s[%(process)d] %(levelname)s - %(message)s
datefmt=
