lib/cliutils/configuration.rb in cliutils-1.0.5 vs lib/cliutils/configuration.rb in cliutils-1.0.6

- old
+ new

@@ -3,9 +3,18 @@ module CLIUtils # Configuration Module # Manages any configuration values and the flat YAML file # into which they get stored. module Configuration + # Allows easy access to Logger levels. + LOG_LEVELS = { + 'DEBUG' => Logger::DEBUG, + 'INFO' => Logger::INFO, + 'WARN' => Logger::WARN, + 'ERROR' => Logger::ERROR, + 'FATAL' => Logger::FATAL, + } + # Hook that triggers when this module is included. # @param [Object] k The includer object # @return [void] def self.included(k) k.extend(self)