[prev in list] [next in list] [prev in thread] [next in thread]
List: uwsgi
Subject: [uWSGI] uwsgi and logto logrotate
From: Aleks <al-uwsgi () none ! at>
Date: 2017-02-25 23:47:52
Message-ID: 5be3dfb450312c5693bd247ae613265d () none ! at
[Download RAW message or body]
Hi.
I use uwsgi with systemd.
Thanks for the very helpful page
http://uwsgi-docs.readthedocs.io/en/latest/Systemd.html
I need to rotate the logfile every day with a date pattern and I solved
this with this lines.
###
logdate = %%Y-%%m-%%d %%H:%%M:%%S
logto = /webroot/user001/logs/uwsgi_@(exec://date +%%Y-%%m-%%d).log
log-reopen = true
logfile-chown = user001:user001
###
to trigger this I make
systemctl restart uwsgi.service
Is there a better way to rotate the uwsgi log?
BR
Aleks
_______________________________________________
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic