Class: Logging::Appenders::Stdout
- Inherits:
-
IO
- Object
- Logging::Appender
- IO
- Logging::Appenders::Stdout
- Defined in:
- lib/logging/appenders/console.rb
Overview
This class provides an Appender that can write to STDOUT.
Instance Attribute Summary
Attributes inherited from Logging::Appender
Instance Method Summary collapse
-
#initialize(name = nil, opts = {}) ⇒ Stdout
constructor
call-seq: Stdout.new Stdout.new( :layout => layout ).
Methods inherited from IO
Methods inherited from Logging::Appender
#<<, [], []=, #append, #close, #closed?, #flush, remove, stderr, stdout
Constructor Details
#initialize(name = nil, opts = {}) ⇒ Stdout
18 19 20 21 |
# File 'lib/logging/appenders/console.rb', line 18 def initialize( name = nil, opts = {} ) name ||= 'stdout' super(name, STDOUT, opts) end |