Class: Mammoth::Logging::NullLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/mammoth/logging.rb

Overview

No-op logger used at injectable library boundaries.

Constant Summary collapse

INSTANCE =

Shared immutable no-op logger.

new

Instance Method Summary collapse

Instance Method Details

#debug(_event, **_context) ⇒ false

Suppress a debug event.

Returns:

  • (false)


75
# File 'lib/mammoth/logging.rb', line 75

def debug(_event, **_context) = false

#enabled?(_severity) ⇒ Boolean

Returns:

  • (Boolean)


92
# File 'lib/mammoth/logging.rb', line 92

def enabled?(_severity) = false

#error(_event, **_context) ⇒ false

Suppress an error event.

Returns:

  • (false)


90
# File 'lib/mammoth/logging.rb', line 90

def error(_event, **_context) = false

#info(_event, **_context) ⇒ false

Suppress an informational event.

Returns:

  • (false)


80
# File 'lib/mammoth/logging.rb', line 80

def info(_event, **_context) = false

#warn(_event, **_context) ⇒ false

Suppress a warning event.

Returns:

  • (false)


85
# File 'lib/mammoth/logging.rb', line 85

def warn(_event, **_context) = false