I'm running Gunicorn and all the access and error logs are appended to 2 files (one for access and one for error). I'm looking for ways to rotate out those logs on a daily basis as to not have 2 massive files for all logs. I was thinking of passing in a dict config into the Gunicorn configuration file, however it doesn't seem to be working. Also, I'm aware a similar question has been asked here, but that is rotating logs using the logrotate linux command which I cannot use in my current situation. Is there anyone who has run into something similar and found a workaround?
Asked
Active
Viewed 799 times
1
-
[this answer](https://stackoverflow.com/a/65613641/1116171) does exactly what you need. Cheers – Charlie Feb 27 '21 at 16:25