java.lang.Objectorg.apache.log4j.spi.LoggingEvent
All Implemented Interfaces:
Serializable
LoggingEvent
instance
is created. This instance is passed around to the different log4j
components.
This class is of concern to those wishing to extend log4j.
Ceki
- GülcüJames
- P. Cakalic0.8.2
- Field Summary | ||
---|---|---|
public final transient String | fqnOfCategoryClass | Fully qualified name of the calling category class. |
public final String | categoryName | The category (logger) name. |
public transient Priority | level | Level of logging event. Level cannot be serializable because it
is a flyweight. Due to its special seralization it cannot be
declared final either.
This field should not be accessed directly. You shoud use the #getLevel method instead. |
public final long | timeStamp | The number of milliseconds elapsed from 1/1/1970 until logging event was created. |
static final long | serialVersionUID | |
static final Integer[] | PARAM_ARRAY | |
static final String | TO_LEVEL | |
static final Class[] | TO_LEVEL_PARAMS | |
static final Hashtable | methodCache |
Constructor: |
---|
Except #timeStamp all the other fields of
|
Except #timeStamp all the other fields of
|
|
Method from org.apache.log4j.spi.LoggingEvent Summary: |
---|
getFQNOfLoggerClass, getLevel, getLocationInformation, getLogger, getLoggerName, getMDC, getMDCCopy, getMessage, getNDC, getProperties, getProperty, getPropertyKeySet, getRenderedMessage, getStartTime, getThreadName, getThrowableInformation, getThrowableStrRep, getTimeStamp, locationInformationExists, removeProperty, setProperty |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.log4j.spi.LoggingEvent Detail: |
---|
|
level field. |
|
|
categoryName field. |
key
parameter. If there is a local MDC copy, possibly because we are
in a logging server or running inside AsyncAppender, then we
search for the key in MDC copy, if a value is found it is
returned. Otherwise, if the search in MDC copy returns a null
result, then the current thread's MDC is used.
Note that both the local MDC copy and the current thread's MDC are searched. |
|
Before serialization, the returned object is the message passed by the user to generate the logging event. After serialization, the returned value equals the String form of the message possibly after object rendering. |
|
|
|
|
|
|
|
null if there is no such information.
Note that the Throwable object contained within a ThrowableInformation does not survive serialization. |
|
|
|
|
|