class ElasticAPM::Config::LogLevelMap

@api private

Constants

DEFAULT
LEVELS

Public Instance Methods

call(value) click to toggle source
# File lib/elastic_apm/config/log_level_map.rb, line 38
def call(value)
  if value.is_a?(Integer)
    LEVELS.value?(value) ? value : DEFAULT
  else
    LEVELS.fetch(value.to_sym, DEFAULT)
  end
end