rails log rotation behaves weird (rails version 2.3.5)
- by robodo
I'm trying to setup log rotation in rails. I have put this in my environment/development.rb:
config.logger = Logger.new("#{RAILS_ROOT}/log/#{ENV['RAILS_ENV']}.log", 1, 5*1048576)
2 files are created :-) but it looks like rails is writing to them randomly and at the same time as well. This creates messy log files :-( what am I missing?