Class: QAT::Logger::ConsoleOutputter

Inherits:
Log4r::StdoutOutputter
  • Object
show all
Defined in:
lib/qat/logger/outputter/console.rb

Overview

This class represents a generic console output handler

Instance Method Summary collapse

Constructor Details

#initialize(name, opts = {}) ⇒ ConsoleOutputter

Creates a output handler for logging to the console named name with options.

Default options are:

  • ‘formatter’ = QAT::Logger::Formatter.new(‘colors’ => true)

  • ‘level’ = Log4r::ALL

See QAT::Logger::Formatter See Log4r::StdoutOutputter See Log4r::ALL



19
20
21
22
23
# File 'lib/qat/logger/outputter/console.rb', line 19

def initialize name, opts={}
  default = { formatter: QAT::Logger::Formatter.new('colors' => true),
              level:     Log4r::ALL }
  super name, default.merge(opts)
end