Method: Sapience::Configuration#map_levels
- Defined in:
- lib/sapience/configuration.rb
#map_levels ⇒ Object
Mapping of Rails and Ruby Logger levels to Sapience levels
78 79 80 81 82 83 84 |
# File 'lib/sapience/configuration.rb', line 78 def map_levels return [] unless defined?(::Logger::Severity) @@map_levels ||= ::Logger::Severity.constants.each_with_object([]) do |constant, levels| levels[::Logger::Severity.const_get(constant)] = level_by_index_or_error(constant) end end |