Message326666
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. |
|
Date |
User |
Action |
Args |
2018-09-29 04:46:43 | vinay.sajip | set | recipients:
+ vinay.sajip, Bruce Edge |
2018-09-29 04:46:43 | vinay.sajip | set | messageid: <1538196403.4.0.545547206417.issue29001@psf.upfronthosting.co.za> |
2018-09-29 04:46:43 | vinay.sajip | link | issue29001 messages |
2018-09-29 04:46:43 | vinay.sajip | create | |
|