Class: NullLogger
Instance Method Summary collapse
-
#add(severity, message = nil, progname = nil) ⇒ Object
All other methods (debug/info) etc use add internally.
-
#initialize(*args) ⇒ NullLogger
constructor
A new instance of NullLogger.
Methods included from Logger::NoTimestampPatch
Methods included from Logger::BetterPatch
Constructor Details
#initialize(*args) ⇒ NullLogger
Returns a new instance of NullLogger.
4 5 6 |
# File 'lib/logger/null_logger.rb', line 4 def initialize(*args) end |
Instance Method Details
#add(severity, message = nil, progname = nil) ⇒ Object
All other methods (debug/info) etc use add internally. It’s the lowest level public interface.
10 11 12 |
# File 'lib/logger/null_logger.rb', line 10 def add(severity, = nil, progname = nil) yield if .nil? && block_given? end |