For Rails 3.1 (coming very soon 3.2) I have exceptionally detailed logs that have a lot of additional information about the worker erupting in them.
I usually get multi-gigabyte development.log files. I saw a few chatter around revolving production logs, however I did not find anything that seems applicable to the development.log spin.
How do you rotate your development.log on every 100.megabytes or so? OR WHAT I WANT TO PREVENT - actually truncate the head of the file so that only the most recent items remain in the log, up to 100 MB from the last entries.
I played around a bit with this and think more and more than nothing like it at the moment, and that maybe I should implement something that ruby File.truncate will use File.truncate some way, however I'm not sure about the effectiveness this is still on the tail of the file for now.
ruby bash ruby-on-rails logging ruby-on-rails-3
ylluminate
source share