Skip to content

Commit

Permalink
Allow configuring of logger ahead of load
Browse files Browse the repository at this point in the history
This circumvents problems with gems calling `logger` and
thus loading the Logger before it can be configured.
  • Loading branch information
skade committed Jul 15, 2011
1 parent 05afa89 commit 2d87793
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions padrino-core/lib/padrino-core/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class Logger
:development => { :log_level => :debug, :stream => :stdout },
:test => { :log_level => :debug, :stream => :null }
}
Config.merge!(PADRINO_LOGGERS) if defined?(PADRINO_LOGGERS)

# Embed in a String to clear all previous ANSI sequences.
CLEAR = "\e[0m"
Expand Down

0 comments on commit 2d87793

Please sign in to comment.