Class: Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/franz/logger.rb

Overview

Extending the Logger with TRACE capabilities

Direct Known Subclasses

Franz::Logger

Constant Summary collapse

TRACE =

N.B. TRACE is above other levels

SEV_LABEL.index('TRACE')

Instance Method Summary collapse

Instance Method Details

#trace(progname, &block) ⇒ Object

Send a TRACE-level log line



14
15
16
# File 'lib/franz/logger.rb', line 14

def trace progname, &block
  add TRACE, nil, progname, &block if @trace
end