Parent

Methods

Log4r::LogEvent

LogEvent wraps up all the miscellaneous data associated with a logging statement. It gets passed around to the varied components of Log4r and should be of interest to those creating extensions.

Data contained:

level

The integer level of the log event. Use LNAMES[level] to get the actual level name.

tracer

The execution stack returned by caller at the log event. It is nil if the invoked Logger’s trace is false.

data

The object that was passed into the logging method.

name

The name of the logger that was invoked.

fullname

The fully qualified name of the logger that was invoked.

Note that creating timestamps is a task left to formatters.

Attributes

level[R]
tracer[R]
data[R]
name[R]
fullname[R]

Public Class Methods

new(level, logger, tracer, data) click to toggle source
    # File lib/log4r/logevent.rb, line 23
23:     def initialize(level, logger, tracer, data)
24:       @level, @tracer, @data = level, tracer, data
25:       @name, @fullname = logger.name, logger.fullname
26:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.