Class: CleanConfig::ConfLogger
- Inherits:
-
Logger
- Object
- Logger
- CleanConfig::ConfLogger
- Defined in:
- lib/clean_config/configuration.rb
Overview
Logger that reads DEBUG environment variable to set level
Instance Method Summary collapse
-
#initialize(*args) ⇒ ConfLogger
constructor
A new instance of ConfLogger.
Constructor Details
#initialize(*args) ⇒ ConfLogger
Returns a new instance of ConfLogger.
16 17 18 19 |
# File 'lib/clean_config/configuration.rb', line 16 def initialize(*args) super self.level = ENV['DEBUG'] ? Logger::DEBUG : Logger::INFO end |