rails log rotation behaves weird (rails version 2.3.5)
Posted
by robodo
on Stack Overflow
See other posts from Stack Overflow
or by robodo
Published on 2010-05-20T08:24:44Z
Indexed on
2010/05/20
8:30 UTC
Read the original article
Hit count: 136
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?
© Stack Overflow or respective owner