A log device that appends to the object it's constructed with instead of writing to a file descriptor or a file.
The target of the log device
Create a new AppendingLogDevice that
will append content to array
.
# File lib/loggability/logger.rb, line 32
def initialize( target )
@target = target
end
No-op – this is here just so Logger doesn't complain
# File lib/loggability/logger.rb, line 51
def close; end
Append the specified message
to the target.
# File lib/loggability/logger.rb, line 46
def write( message )
@target << message
end