Class: Remotenv::Logger
- Inherits:
-
Logger
- Object
- Logger
- Remotenv::Logger
- Defined in:
- lib/remotenv/logger.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(*args) ⇒ Logger
Returns a new instance of Logger.
16 17 18 19 20 21 |
# File 'lib/remotenv/logger.rb', line 16 def initialize(*args) super @progname = "remotenv" log_level = (ENV["REMOTENV_LOG_LEVEL"] || ENV["LOG_LEVEL"] || "").upcase @level = ["DEBUG", "INFO", "WARN", "ERROR", "FATAL", "UNKNOWN"].index(log_level) != nil ? Logger.const_get(log_level) : Logger::INFO end |