Module: Dry::Logger::Backends::Core
Instance Attribute Summary collapse
-
#log_if ⇒ Object
private
Return a proc used by the log? predicate.
Instance Method Summary collapse
- #log?(entry) ⇒ Boolean private
Instance Attribute Details
#log_if ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return a proc used by the log? predicate
13 14 15 |
# File 'lib/dry/logger/backends/core.rb', line 13 def log_if @log_if end |
Instance Method Details
#log?(entry) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 31 32 33 34 |
# File 'lib/dry/logger/backends/core.rb', line 28 def log?(entry) if log_if log_if.call(entry) else true end end |