class Loggability::Logger::AppendingLogDevice
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
new( target )
click to toggle source
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
close()
click to toggle source
No-op – this is here just so Logger doesn't complain
# File lib/loggability/logger.rb, line 51 def close; end
write( message )
click to toggle source
Append the specified message
to the target.
# File lib/loggability/logger.rb, line 46 def write( message ) @target << message end