Sha256: 6647416dc5edd98cd3bf1e96690fce1caa75487cf7e227119b052a600218fee1
Contents?: true
Size: 487 Bytes
Versions: 2
Compression:
Stored size: 487 Bytes
Contents
#!/usr/bin/env ruby # vim: set nosta noet ts=4 sw=4: # encoding: utf-8 require 'logger' require 'loggability' unless defined?( Loggability ) 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, }.freeze # Logger levels -> names LOG_LEVEL_NAMES = LOG_LEVELS.invert.freeze end # module Loggability::Constants
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
loggability-0.0.2 | lib/loggability/constants.rb |
loggability-0.0.1 | lib/loggability/constants.rb |