Class Logging::Appenders::IO
In: lib/logging/appenders/io.rb
Parent: ::Logging::Appender

This class provides an Appender that can write to any IO stream configured for writing.

Methods

close   new  

Included Modules

Buffering

Attributes

close_method  [RW]  The method that will be used to close the IO stream. Defaults to :close but can be :close_read, :close_write or nil. When nil, the IO stream will not be closed when the appender‘s close method is called.

Public Class methods

Creates a new IO Appender using the given name that will use the io stream as the logging destination.

Public Instance methods

Close the appender and writes the layout footer to the logging destination if the footer flag is set to true. Log events will no longer be written to the logging destination after the appender is closed.

[Validate]