gunicorn
gunicorn copied to clipboard
Logging to journald
Gunicorn cannot log natively into journald it seems. As a workaround a log handler can be added at start time:
log = logging.getLogger("foo")
log.addHandler(JournalHandler(SYSLOG_IDENTIFIER="foo"))
However the access log format and the unit name cannot be customized.
what about using a custom logging class? WOuld it work for you?
no activity since awhile. closing feel free to create a new ticket if needed.