[Mongrel] Log rotation

David Vrensk david at vrensk.com
Wed Oct 11 04:27:45 EDT 2006

On 10/9/06, Carl Lerche <carl.lerche at gmail.com> wrote:
> You can do something like this in environment.rb
> config.logger =
> Logger.new("#{RAILS_ROOT}/log/#{ENV['RAILS_ENV']}.log", 50, 4194304)
> Check the docs for Logger for more information.

Hi Carl,

I will definately investigate that.  It seems simple enough, but at the same
time it stirs the suspicion that all my mongrels (or really, the railses in
the mongrels) are writing to the same file with no locking.  I will have to
read me some source code.

Thanks for the tip!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061011/ad59411a/attachment.html 

More information about the Mongrel-users mailing list