sample logging config for various stator/worker modules as well as the web server

This commit is contained in:
Osma Ahvenlampi 2023-11-29 10:49:09 +02:00
parent bf2f5378a5
commit 21c6b2a89f

57
docker/logging_config.ini Normal file
View file

@ -0,0 +1,57 @@
[handlers]
keys = out, error
[handler_out]
class = StreamHandler
formatter = generic
args = (sys.stdout,)
[handler_error]
class = StreamHandler
formatter = generic
args = (sys.stderr,)
[formatters]
keys = generic
[formatter_generic]
format = [%(levelname)s] [%(name)s]: %(message)s
[loggers]
keys = root, gunicorn, django, takahe_core, takahe_stator, takahe_users, takahe_activities
[logger_root]
handlers = error
level = WARNING
[logger_gunicorn]
handlers = error
qualname = gunicorn.error
level = ERROR
propagate = 0
[logger_django]
handlers = error
qualname = django
level = ERROR
propagate = 0
[logger_takahe_core]
handlers = out
qualname = core
level = INFO
[logger_takahe_stator]
handlers = out
qualname = stator
level = INFO
[logger_takahe_users]
handlers = out
qualname = users
level = INFO
[logger_takahe_activities]
handlers = out
qualname = activities
level = INFO