[Mongrel] Log rotation

Dee Zsombor dee.zsombor at gmail.com
Wed Oct 11 03:16:24 EDT 2006

Carl Lerche wrote:
> You can do something like this in environment.rb
> config.logger =
> Logger.new("#{RAILS_ROOT}/log/#{ENV['RAILS_ENV']}.log", 50, 4194304)

Or use a custom script for well established logrotate. For once this is
already used to rotate other logs in the system, and will work correctly
unlike the above snippet prone to failure if multiple ruby processes try
to rotate at the same time.

Company  - http://primalgrasp.com
Thoughts - http://deezsombor.blogspot.com

More information about the Mongrel-users mailing list