Class: SmallWonder::Log

Inherits:
Object
  • Object
show all
Extended by:
Mixlib::Log
Defined in:
lib/small_wonder/log.rb

Defined Under Namespace

Classes: Formatter

Constant Summary collapse

COLORS =
{
  'FATAL' => :light_red,
  'ERROR' => :light_red,
  'WARN' => :light_yellow,
  'INFO' => nil,
  'DEBUG' => :light_blue
}

Class Method Summary collapse

Class Method Details

.init(*opts) ⇒ Object



23
24
25
26
27
28
# File 'lib/small_wonder/log.rb', line 23

def self.init(*opts)
  super *opts

  @logger.formatter = Formatter.new() if @logger.respond_to?(:formatter=)
  @logger
end