This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients Bruce Edge, vinay.sajip
Date 2018-09-29.04:46:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538196403.4.0.545547206417.issue29001@psf.upfronthosting.co.za>
In-reply-to
Content
It's not Gunicorn-specific - more a case of multiple processes writing to a single log file. This is not supported directly, as documented here:

https://docs.python.org/3/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes

As the cookbook says, you can set up a separate process to handle logging to file, which listens with a socket server or a multiprocessing QueueListener; your worker processes would communicate with it using either a SocketHandler or a QueueHandler, as appropriate.
History
Date User Action Args
2018-09-29 04:46:43vinay.sajipsetrecipients: + vinay.sajip, Bruce Edge
2018-09-29 04:46:43vinay.sajipsetmessageid: <1538196403.4.0.545547206417.issue29001@psf.upfronthosting.co.za>
2018-09-29 04:46:43vinay.sajiplinkissue29001 messages
2018-09-29 04:46:43vinay.sajipcreate