Sha256: 4ce2db7e391115de3f7e0161531603be08c2a81b5d9e3b6c7b73b1e25d9f21e4
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
module SemanticLogger # 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 class DebugAsTraceLogger < Logger alias debug trace alias debug? trace? alias measure_debug measure_trace alias benchmark_debug benchmark_trace end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
semantic_logger-4.16.1 | lib/semantic_logger/debug_as_trace_logger.rb |
semantic_logger-4.16.0 | lib/semantic_logger/debug_as_trace_logger.rb |