Class Logging::Appenders::StringIo
In: lib/logging/appenders/string_io.rb
Parent: ::Logging::Appenders::IO

This class provides an Appender that can write to a StringIO instance. This is very useful for testing log message output.

Methods

clear   new   reset  

Attributes

sio  [R]  The StringIO instance the appender is writing to.

Public Class methods

Creates a new StrinIo appender that will append log messages to a StringIO instance.

Public Instance methods

Clears the internal StringIO instance. All log messages are removed from the buffer.

reset()

Alias for clear

[Validate]