Python Forum
Using gunicorn workers to log to single file - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Using gunicorn workers to log to single file (/thread-13987.html)



Using gunicorn workers to log to single file - buntu - Nov-09-2018

I'm using gunicorn to spawn a few workers and want to write to the workers to write to the same log file. Also logrotate would be used to rotate this log file once a day. Also I'm using Python v3.6.3. Whats the right file handler to use in this case?

Thanks!