Class: Logging::Appenders::Stdout

Inherits:
IO show all
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

#layout, #level, #name

Instance Method Summary collapse

Methods inherited from IO

#close, #flush

Methods inherited from Logging::Appender

#<<, [], []=, #append, #close, #closed?, #flush, remove, stderr, stdout

Constructor Details

#initialize(name = nil, opts = {}) ⇒ Stdout

call-seq:

Stdout.new
Stdout.new( :layout => layout )

Creates a new Stdout Appender. The name ‘stdout’ will always be used for this appender.



18
19
20
21
# File 'lib/logging/appenders/console.rb', line 18

def initialize( name = nil, opts = {} )
  name ||= 'stdout'
  super(name, STDOUT, opts)
end