Files
romm/docker/gunicorn/logging.conf
Georges-Antoine Assi a4a714475f changes from review
2025-08-26 23:11:16 -04:00

39 lines
681 B
Plaintext

[loggers]
keys=root,gunicorn,error
[handlers]
keys=console_gunicorn
[formatters]
keys=gunicorn_format
# Root logger — KEEP but minimal
[logger_root]
level=WARNING
handlers=
# Gunicorn internal logger
[logger_gunicorn]
level=INFO
handlers=console_gunicorn
qualname=gunicorn
propagate=0
# Gunicorn error logger (optional)
[logger_error]
level=ERROR
handlers=console_gunicorn
qualname=gunicorn.error
propagate=0
# Handler for Gunicorn logs
[handler_console_gunicorn]
class=StreamHandler
formatter=gunicorn_format
args=(sys.stdout,)
# Formatter for Gunicorn logs
[formatter_gunicorn_format]
format=INFO: [RomM][gunicorn][%(asctime)s] %(message)s
datefmt=%Y-%m-%d %H:%M:%S