Class: Log4r::LogEvent

### Home Classes Methods

### In Files

- lib/log4r/logevent.rb

### Parent

Object

### Methods

- ::new

### Files

- GDC
- MDC
- NDC
- configurator
- emailoutputter
- formatter
- log4jxmlformatter
- log4r
- logger
- logserver
- outputter
- patternformatter
- scribeoutputter
- syslogoutputter
- win32eventoutputter
- yamlconfigurator

### Class/Module Index

Quicksearch

- Log4r
- Log4r::BasicFormatter
- Log4r::ConfigError
- Log4r::Configurator
- Log4r::DateFileOutputter
- Log4r::DefaultFormatter
- Log4r::EmailOutputter
- Log4r::FileOutputter
- Log4r::Formatter
- Log4r::GDC
- Log4r::IOOutputter
- Log4r::Log4jXmlFormatter
- Log4r::Log4rTools
- Log4r::LogEvent
- Log4r::LogServer
- Log4r::Logger
- Log4r::MDC
- Log4r::NDC
- Log4r::ObjectFormatter
- Log4r::Outputter
- Log4r::PatternFormatter
- Log4r::RemoteOutputter
- Log4r::RollingFileOutputter
- Log4r::RootLogger
- Log4r::ScribeOutputter
- Log4r::SimpleFormatter
- Log4r::StderrOutputter
- Log4r::StdoutOutputter
- Log4r::SyslogOutputter
- Log4r::UDPOutputter
- Log4r::YamlConfigurator
- REXML
- Object

No matching classes.

# 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 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

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

### Public Class Methods

new(level, logger, tracer, data) click to toggle source

    # File lib/log4r/logevent.rb, line 23
    def initialize(level, logger, tracer, data)
      @level, @tracer, @data = level, tracer, data
      @name, @fullname = logger.name, logger.fullname
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.