Class: Logger

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

Overview

Adds TRACE severity logging to Ruby’s Logger class.

Constant Summary collapse

TRACE =

TRACE severity is one less than ::Logger::DEBUG.

DEBUG - 1

Instance Method Summary collapse

Instance Method Details

#trace(progname = nil, &block) ⇒ Object

Log a TRACE message.

See ::Logger::info for more information.



28
29
30
# File 'lib/lcoveralls/logger.rb', line 28

def trace(progname = nil, &block)
  add(TRACE, nil, progname, &block)
end

#trace?Boolean

Returns true if the current severity level allows for the printing of TRACE messages.

Returns:

  • (Boolean)


34
# File 'lib/lcoveralls/logger.rb', line 34

def trace?; @level <= TRACE; end