Logrotate for Rails apps

Tagged with Rails logrotate

Language: Bash

Use logrotate to keep Rails logs from overgrowing.

This is just one example of rotation and it’s not specific to Rails.

View as text

/app/*/shared/log/*log { 
compress 
copytruncate 
create 640 root web 
daily 
dateext 
delaycompress 
missingok 
notifempty 
olddir archive 
rotate 30 
sharedscripts 
size 1M 
}
Last updated at 22:34 PM on Apr 04, 2009 by Brian Hogan

SnippetStash costs money to host and develop. The service is free for everyone to use
but if you found it useful please consider making a small donation.