lib/loggability/constants.rb in loggability-0.0.2 vs lib/loggability/constants.rb in loggability-0.1.0
- old
+ new
@@ -8,14 +8,14 @@
module Loggability::Constants
# Log level names and their Logger constant equivalents
LOG_LEVELS = {
- debug: Logger::DEBUG,
- info: Logger::INFO,
- warn: Logger::WARN,
- error: Logger::ERROR,
- fatal: Logger::FATAL,
+ :debug => Logger::DEBUG,
+ :info => Logger::INFO,
+ :warn => Logger::WARN,
+ :error => Logger::ERROR,
+ :fatal => Logger::FATAL,
}.freeze
# Logger levels -> names
LOG_LEVEL_NAMES = LOG_LEVELS.invert.freeze