mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
* add models tests (#1) also replace single quote to double one to confort PEP docstring + move _check_output to class properties to make it available for mocking * alpm tests implementation * try to replace os with pathlib * update tests for pathlib * fix includes glob and trim version from dependencies * build_tools package tests * repository component tests * add sign tests * complete status tests * handle exceptions in actual_version calls * complete core tests * move configuration to root conftest * application tests * complete application tests * change copyright to more generic one * base web tests * complete web tests * complete testkit also add argument parsers test
60 lines
1.2 KiB
INI
60 lines
1.2 KiB
INI
[loggers]
|
|
keys = root,builder,build_details,http
|
|
|
|
[handlers]
|
|
keys = console_handler,build_file_handler,file_handler,http_handler
|
|
|
|
[formatters]
|
|
keys = generic_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)
|
|
|
|
[formatter_generic_format]
|
|
format = [%(levelname)s %(asctime)s] [%(filename)s:%(lineno)d] [%(funcName)s]: %(message)s
|
|
datefmt =
|
|
|
|
[logger_root]
|
|
level = DEBUG
|
|
handlers = file_handler
|
|
qualname = root
|
|
|
|
[logger_builder]
|
|
level = DEBUG
|
|
handlers = file_handler
|
|
qualname = builder
|
|
propagate = 0
|
|
|
|
[logger_build_details]
|
|
level = DEBUG
|
|
handlers = build_file_handler
|
|
qualname = build_details
|
|
propagate = 0
|
|
|
|
[logger_http]
|
|
level = DEBUG
|
|
handlers = http_handler
|
|
qualname = http
|
|
propagate = 0
|