#45: why is Rails logging to ".log"?!

Solved!
I started using Workling, but quickly realized it was logging to "log/.log" for some inane reason.

Watch how you log...

1
After trying to blame Workling for a while, I realized it was my problem. In my environment.rb, I had

config.logger = Logger.new("#{RAILS_ROOT}/log/#{ENV['RAILS_ENV']}.log", 20, 1048576)

I don't explicitly set RAILS_ENV in my env, so I should have had

config.logger = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.log", 20, 1048576)

The Lesson: always use RAILS_ENV, never ENV['RAILS_ENV'].

Think you've got a better solution? Help 148c663fd665c53518538e093ce3c2ab_small kueda out by posting your solution