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 Logger
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Logger
appenders, cache_count, flush, #initialize, lag_check_interval, lag_check_interval=, lag_threshold_s, logger=, on_metric, queue_size, time_threshold_s=
Methods inherited from Base
#benchmark, default_level, default_level=, #level, #level=, #payload, #pop_tags, #push_tags, #silence, #tagged, #tags, #with_payload
Constructor Details
This class inherits a constructor from SemanticLogger::Logger
Instance Method Details
#benchmark_debug(*args, &block) ⇒ Object
14 15 16 |
# File 'lib/semantic_logger/debug_as_trace_logger.rb', line 14 def benchmark_debug(*args, &block) benchmark_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 |