When my service run in uwsgi for a long time, the log file size grows very large. I want to find a way to automatic control the log size. For example, service in supervisor will cut into several pieces and it reserve the last 10 pieces.
you need log-maxsize
[uwsgi]
;...
;...
log-maxsize = 2048
You may also want to setup logrotate to keep backups for files (which you can have it compress the rotated log). http://linuxcommand.org/man_pages/logrotate8.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With