Class: SemanticLogger::DebugAsTraceLogger
- Defined in:
- lib/semantic_logger/debug_as_trace_logger.rb
Overview
Custom logger that maps all calls to debug to trace calls This is useful for existing gems / libraries that log too much to debug when most of the debug logging should be at the trace level
Instance Attribute Summary
Attributes inherited from Base
#filter, #instance_named_tags, #instance_tags, #name
Instance Method Summary collapse
-
#benchmark_debug(message, params = {}) ⇒ Object
Deprecated: use measure_debug, which takes the same arguments.
Methods inherited from Logger
call_subscribers, clear_subscribers, #initialize, #log, processor, subscribe, sync!, sync?, unsubscribe
Methods included from Concerns::Compatibility
#add, #close, included, #reopen
Methods inherited from Base
#backtrace, #benchmark, #fast_tag, #level, #level=, #log, #measure, #named_tags, #pop_tags, #push_tags, #should_log?, #silence, #tagged, #tags, #with_level
Constructor Details
This class inherits a constructor from SemanticLogger::Logger
Instance Method Details
#benchmark_debug(message, params = {}) ⇒ Object
Deprecated: use measure_debug, which takes the same arguments. Removed in v6.
11 12 13 14 15 16 |
# File 'lib/semantic_logger/debug_as_trace_logger.rb', line 11 def benchmark_debug(, params = {}, &) SemanticLogger::Deprecation.warn( "benchmark_debug is deprecated and removed in v6. Use measure_debug, which takes the same arguments." ) measure_trace(, params, &) end |