Class: QAT::Logger::ConsoleOutputter
- Inherits:
-
Log4r::StdoutOutputter
- Object
- Log4r::StdoutOutputter
- QAT::Logger::ConsoleOutputter
- Defined in:
- lib/qat/logger/outputter/console.rb
Overview
This class represents a generic console output handler
Instance Method Summary collapse
-
#initialize(name, opts = {}) ⇒ ConsoleOutputter
constructor
Creates a output handler for logging to the console named
name
withoptions
.
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 |