1. use /var/log location
2. have logroate.d/ conf file
/var/log/gunicorn/*.log {
rotate 1
weekly
copytruncate
dateext
compress
missingok
notifempty
}
use copytruncate option
No comments:
Post a Comment