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:
- hostname of event originator
- server name of event originator
- component name of event originator
- component version of event originator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.
Please notify me about new log4j releases.