Class: Commons::Logging::Impl::NoOpLog
- Inherits:
-
Object
- Object
- Commons::Logging::Impl::NoOpLog
- Includes:
- Log
- Defined in:
- lib/commons/logging/impl/no_op_log.rb
Direct Known Subclasses
Constant Summary
Constants included from Log
Log::DEBUG, Log::ERROR, Log::FATAL, Log::INFO, Log::TRACE, Log::WARN
Instance Method Summary collapse
- #enabled_for?(level) ⇒ Boolean
-
#initialize(name = nil) ⇒ NoOpLog
constructor
A new instance of NoOpLog.
- #log(level, message, exception = nil) ⇒ Object
Methods included from Log
#debug, #debug?, #error, #error?, #fatal, #fatal?, #info, #info?, #trace, #trace?, #warn, #warn?
Constructor Details
#initialize(name = nil) ⇒ NoOpLog
Returns a new instance of NoOpLog.
42 43 44 |
# File 'lib/commons/logging/impl/no_op_log.rb', line 42 def initialize(name = nil) # do nothing. end |
Instance Method Details
#enabled_for?(level) ⇒ Boolean
52 53 54 |
# File 'lib/commons/logging/impl/no_op_log.rb', line 52 def enabled_for?(level) return false end |
#log(level, message, exception = nil) ⇒ Object
47 48 49 |
# File 'lib/commons/logging/impl/no_op_log.rb', line 47 def log(level, , exception = nil) # do nothing. end |