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
Instance Method Summary collapse
- #benchmark_debug(*args, &block) ⇒ Object
- #debug(*args, &block) ⇒ Object
- #debug? ⇒ Boolean
- #measure_debug(*args, &block) ⇒ Object
Methods inherited from Logger
call_subscribers, #initialize, #log, processor, subscribe, sync!, sync?
Methods included from Concerns::Compatibility
#add, #close, included, #reopen
Methods inherited from Base
#backtrace, #fast_tag, #level, #level=, #log, #measure, #named_tags, #pop_tags, #push_tags, #should_log?, #silence, #tagged, #tags
Constructor Details
This class inherits a constructor from SemanticLogger::Logger
Instance Method Details
#benchmark_debug(*args, &block) ⇒ Object
18 19 20 |
# File 'lib/semantic_logger/debug_as_trace_logger.rb', line 18 def benchmark_debug(*args, &block) measure_trace(*args, &block) end |
#debug(*args, &block) ⇒ Object
6 7 8 |
# File 'lib/semantic_logger/debug_as_trace_logger.rb', line 6 def debug(*args, &block) trace(*args, &block) end |
#debug? ⇒ Boolean
10 11 12 |
# File 'lib/semantic_logger/debug_as_trace_logger.rb', line 10 def debug? trace? end |
#measure_debug(*args, &block) ⇒ Object
14 15 16 |
# File 'lib/semantic_logger/debug_as_trace_logger.rb', line 14 def measure_debug(*args, &block) measure_trace(*args, &block) end |