mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
Agent-Logs-Url: https://github.com/rommapp/romm/sessions/0b5ef21c-89e1-4f08-b402-03f3276aab08 Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
39 lines
690 B
Plaintext
39 lines
690 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=%(levelname)s: [RomM][gunicorn][%(asctime)s] %(message)s
|
|
datefmt=%Y-%m-%d %H:%M:%S
|