Class: Polylog::NullLogger
- Inherits:
-
Object
- Object
- Polylog::NullLogger
- Defined in:
- lib/polylog/null_logger.rb
Overview
This is a no-op logger that implements the principal methods from the standard Ruby logger. All methods do nothing and return either ‘false` or `nil`.
Instance Method Summary collapse
- #<<(msg) ⇒ Object
- #add(*args) ⇒ Object (also: #debug, #info, #warn, #error, #fatal, #unknown, #log)
- #close ⇒ Object
- #debug? ⇒ Boolean (also: #info?, #warn?, #error?, #fatal?)
Instance Method Details
#<<(msg) ⇒ Object
8 |
# File 'lib/polylog/null_logger.rb', line 8 def <<(msg) nil end |
#add(*args) ⇒ Object Also known as: debug, info, warn, error, fatal, unknown, log
17 |
# File 'lib/polylog/null_logger.rb', line 17 def add(*args) false end |
#close ⇒ Object
9 |
# File 'lib/polylog/null_logger.rb', line 9 def close() nil end |
#debug? ⇒ Boolean Also known as: info?, warn?, error?, fatal?
11 |
# File 'lib/polylog/null_logger.rb', line 11 def debug?() false end |