Class: Logger::LoggerIO
Overview
An IO-like interface for a logger object
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(logger, level) ⇒ LoggerIO
constructor
A new instance of LoggerIO.
- #print(msg) ⇒ Object
- #puts(msg) ⇒ Object
Constructor Details
#initialize(logger, level) ⇒ LoggerIO
Returns a new instance of LoggerIO.
7 8 9 10 |
# File 'lib/utilrb/logger/io.rb', line 7 def initialize(logger, level) @logger, @level = logger, level @buffer = '' end |