Class: Mammoth::Logging::NullLogger
- Inherits:
-
Object
- Object
- Mammoth::Logging::NullLogger
- 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
-
#debug(_event, **_context) ⇒ false
Suppress a debug event.
- #enabled?(_severity) ⇒ Boolean
-
#error(_event, **_context) ⇒ false
Suppress an error event.
-
#info(_event, **_context) ⇒ false
Suppress an informational event.
-
#warn(_event, **_context) ⇒ false
Suppress a warning event.
Instance Method Details
#debug(_event, **_context) ⇒ false
Suppress a debug event.
75 |
# File 'lib/mammoth/logging.rb', line 75 def debug(_event, **_context) = false |
#enabled?(_severity) ⇒ Boolean
92 |
# File 'lib/mammoth/logging.rb', line 92 def enabled?(_severity) = false |
#error(_event, **_context) ⇒ false
Suppress an error event.
90 |
# File 'lib/mammoth/logging.rb', line 90 def error(_event, **_context) = false |
#info(_event, **_context) ⇒ false
Suppress an informational event.
80 |
# File 'lib/mammoth/logging.rb', line 80 def info(_event, **_context) = false |
#warn(_event, **_context) ⇒ false
Suppress a warning event.
85 |
# File 'lib/mammoth/logging.rb', line 85 def warn(_event, **_context) = false |