Files
cloudron-box/src/logrotate.ejs
T

26 lines
691 B
Plaintext
Raw Normal View History

2019-07-30 14:47:33 -07:00
# Generated by apptask
2019-07-30 14:47:33 -07:00
# keep upto 7 rotated logs. rotation triggered daily or ahead of time if size is > 1M
<%= volumePath %>/*.log <%= volumePath %>/*/*.log <%= volumePath %>/*/*/*.log {
2019-07-30 14:47:33 -07:00
rotate 7
daily
compress
maxsize 1M
missingok
delaycompress
2020-05-11 13:59:52 -07:00
# this truncates the original log file and not the rotated one
2019-07-30 14:47:33 -07:00
copytruncate
}
2019-07-30 14:47:33 -07:00
/home/yellowtent/platformdata/logs/<%= appId %>/*.log {
# only keep one rotated file, we currently do not send that over the api
rotate 1
size 10M
missingok
# we never compress so we can simply tail the files
nocompress
2020-05-11 13:59:52 -07:00
# this truncates the original log file and not the rotated one
2019-07-30 14:47:33 -07:00
copytruncate
}