Replies: 1 comment 1 reply
-
I'm not really clear that it's a good idea to take all Gunicorn's logging handlers/levels and use them for Flask too. Typically you'd configure everything (Flask, Gunicorn, etc.) using So basically, that blog kinda got it right, it shows configuring Flask loggers before creating the app. But it went off in the direction of copying other config rather than performing a full configuration, when it could have gone all in on configuring one root handler, for example |
Beta Was this translation helpful? Give feedback.
-
I was wondering what you think of adding a section to the gunicorn docs page about logging. This seems to be the standard approach, and worked for me:
https://trstringer.com/logging-flask-gunicorn-the-manageable-way/
Specifically:
It took some time to find that, however, and its not obvious from the gunicorn docs. I'm happy to draft a section if it seems like a good idea (and if that is indeed the best path).
Beta Was this translation helpful? Give feedback.
All reactions