Loggability::Logger::

AppendingLogDevice

class
Superclass
Object

A log device that appends to the object it's constructed with instead of writing to a file descriptor or a file.

Attributes

target[R]

The target of the log device

Public Class Methods

anchor
new( target )

Create a new AppendingLogDevice that will append content to array.

# File lib/loggability/logger.rb, line 32
def initialize( target )
        @target = target
end

Public Instance Methods

anchor
close()

No-op – this is here just so Logger doesn't complain

# File lib/loggability/logger.rb, line 51
def close; end
anchor
write( message )

Append the specified message to the target.

# File lib/loggability/logger.rb, line 46
def write( message )
        @target << message
end