padrino/padrino-framework — Issue #774: Padrino Logger Seems to Bypass boot.rb Config When Running Rake
Author: sgonyea
Created: 2012-01-31 02:27:44+00:00
State: open

In boot.rb, my configuration looks as follows:

Padrino::Logger::Config[:production] = { :log_level => :info, :stream => :to_file }
Padrino::Logger::Config[:uat] = Padrino::Logger::Config[:production]
Padrino::Logger::Config[:staging] = Padrino::Logger::Config[:production]

Padrino::Logger::Config[:development] = { :log_level => :debug, :stream => :to_file }

Yet the Padrino.logger object looks as follows:

#, @mutex=#, @format_datetime="%d/%b/%Y %H:%M:%S", @format_message="%s -%s%s", @log_static=false>

When in the Padrino Console, the object is correct:

#, @mutex=#, @format_datetime=" ", @format_message="%s -%s%s", @log_static=false>

I'm looking into this issue, but I wanted to create this issue in the mean time.