-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simplify the logging ? #591
Comments
+1 to this. In my opinion if the application wants to configure logging it should do so itself, not through gunicorn. And gunicorn should keep its own logs from leaking to the application by setting propagate=False (#597). I would go one further and say that gunicorn shouldn't bother writing log files at all -- write errors (ones which are handled within gunicorn) to stderr, and (optionally) write access logs to stdout. If people are running gunicorn in production they should be using a supervisor like systemd which can redirect stdout/stderr to the desired place. Not sure how many gunicorn users would agree with that though. |
+1 as well to at least making propagate=False. This issue might be relevant as well #574 |
Partly fix #591. Gunicorn should only bother writing its own log and let the application handle the way it want to log its own errors. By removing the log_file option we are making sure that someone won't attempt to use gunicorn to do more whn it's about logging. also we are making sure that the logs options are not overriden.
Logging to a logfile should be explicit and gunicorn should not try to be smarter here. Partially fix #591
Partly fix #591. Gunicorn should only bother writing its own log and let the application handle the way it want to log its own errors. By removing the log_file option we are making sure that someone won't attempt to use gunicorn to do more whn it's about logging. also we are making sure that the logs options are not overriden.
Logging to a logfile should be explicit and gunicorn should not try to be smarter here. Partially fix #591
Logging to a logfile should be explicit and gunicorn should not try to be smarter here. Partially fix #591
Gunicorn used to log to stderr by default but that changed in December 2013. benoitc/gunicorn#591
At this point I am not sure we are doing the logging right. Gunicorn log options should only be used for gunicorn purpose and we shouldn't be doing more than that.
ie. :
Thoughts?
The text was updated successfully, but these errors were encountered: