mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
39 lines
681 B
Plaintext
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
|