Log4j 1.1.3

org.apache.log4j.examples.appserver
Class AppServerLoggingEvent

java.lang.Object
  |
  +--org.apache.log4j.spi.LoggingEvent
        |
        +--org.apache.log4j.examples.appserver.AppServerLoggingEvent
All Implemented Interfaces:
Serializable

public class AppServerLoggingEvent
extends LoggingEvent
implements Serializable

Represents logging events for application servers. When an affirmative logging decision is made, a LoggingEvent instance is created. This sub-class of LoggingEvent provides for a few additional attributes:

This class is used to add some application server related attributes to those attributes already provided by log4j. It is instanciated by AppServerCategory.forcedLog methods.

Author:
Paul Glezen
See Also:
Serialized Form

Field Summary
 String component
          Name of component from which this event originated.
 String hostname
          Hostname of machine from which this event originated.
 String server
          Name of server from which this event originated.
 String version
          Version name of server/component.
 
Fields inherited from class org.apache.log4j.spi.LoggingEvent
category, categoryName, fqnOfCategoryClass, priority, timeStamp
 
Constructor Summary
AppServerLoggingEvent(String fqnOfCategoryClass, AppServerCategory category, Priority priority, Object message, Throwable throwable)
          Instantiate an AppServerLoggingEvent from the supplied parameters.
 
Methods inherited from class org.apache.log4j.spi.LoggingEvent
getLocationInformation, getMessage, getNDC, getRenderedMessage, getStartTime, getThreadName, getThrowableInformation, getThrowableStrRep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostname

public String hostname
Hostname of machine from which this event originated.

component

public String component
Name of component from which this event originated.

server

public String server
Name of server from which this event originated. This attribute may be more germane to CORBA/EJB environments.

version

public String version
Version name of server/component.
Constructor Detail

AppServerLoggingEvent

public AppServerLoggingEvent(String fqnOfCategoryClass,
                             AppServerCategory category,
                             Priority priority,
                             Object message,
                             Throwable throwable)
Instantiate an AppServerLoggingEvent from the supplied parameters.

All the fields of AppServerLoggingEvent are obtained from AppServerCategory or filled when actually needed.

Parameters:
fqnOfCategoryClass - The Category class name.
category - The category of this event.
priority - The priority of this event.
message - The message of this event.
throwable - The throwable of this event.

Log4j 1.1.3

Please notify me about new log4j releases.