Sometimes disk space is just not enough on a server, so you have to be extra careful when you add a new service/application: if you forget to update your logrotate configuration file sooner or later you may have a problem.
Sometimes no configuration is the best configuration, so I think that handling log rotation automatically via rails can be a good way to prevent that problem.
This post describes how to handle rails apps log rotation via ruby code, but also how to do it via logrotate, so pick your choice.
Leave a Reply