Logrotate in Rails

September 29th, 2007 by pyrat

Just a wee snippet for logrotate.
Open /etc/logrotate.conf or find it.

Then drop this at the bottom:


/var/www/apps/oentries/current/log/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
copytruncate
}

One Response to “Logrotate in Rails”

  1. Going Live with Rails | Cheer Factory - Technology, Outdoor and Design Says:

    [...] dont want massive logs slowing your app down after its been running got 6 months, remember to configure this as it is often [...]

Leave a Reply