[loggers]
keys = root,builder,build_details,http

[handlers]
keys = console_handler,build_file_handler,file_handler,http_handler,syslog_handler

[formatters]
keys = generic_format,syslog_format

[handler_console_handler]
class = StreamHandler
level = DEBUG
formatter = generic_format
args = (sys.stderr,)

[handler_file_handler]
class = logging.handlers.RotatingFileHandler
level = DEBUG
formatter = generic_format
args = ("/var/log/ahriman/ahriman.log", "a", 20971520, 20)

[handler_build_file_handler]
class = logging.handlers.RotatingFileHandler
level = DEBUG
formatter = generic_format
args = ("/var/log/ahriman/build.log", "a", 20971520, 20)

[handler_http_handler]
class = logging.handlers.RotatingFileHandler
level = DEBUG
formatter = generic_format
args = ("/var/log/ahriman/http.log", "a", 20971520, 20)

[handler_syslog_handler]
class = logging.handlers.SysLogFileHandler
level = DEBUG
formatter = syslog_format
args = ("/dev/log",)

[formatter_generic_format]
format = [%(levelname)s %(asctime)s] [%(filename)s:%(lineno)d] [%(funcName)s]: %(message)s
datefmt =

[formatter_syslog_format]
format = [%(levelname)s] [%(filename)s:%(lineno)d] [%(funcName)s]: %(message)s
datefmt =

[logger_root]
level = DEBUG
handlers = syslog_handler
qualname = root

[logger_builder]
level = DEBUG
handlers = syslog_handler
qualname = builder
propagate = 0

[logger_build_details]
level = DEBUG
handlers = syslog_handler
qualname = build_details
propagate = 0

[logger_http]
level = DEBUG
handlers = syslog_handler
qualname = http
propagate = 0
