Module: Log::Levels::AddLevels

Defined in:
lib/log/levels.rb

Instance Method Summary collapse

Instance Method Details

#add_levels(logger) ⇒ Object



22
23
24
25
26
# File 'lib/log/levels.rb', line 22

def add_levels(logger)
  Log::Defaults.levels.each do |level|
    logger.add_level(level, &Log::Defaults.level_formatters[level])
  end
end