Class: Polylog::NullLogger

Inherits:
Object
  • Object
show all
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

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

#closeObject



9
# File 'lib/polylog/null_logger.rb', line 9

def close() nil end

#debug?Boolean Also known as: info?, warn?, error?, fatal?

Returns:

  • (Boolean)


11
# File 'lib/polylog/null_logger.rb', line 11

def debug?() false end