|
Log4j 0.9.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.log4j.spi.LoggingEvent
The internal representation of logging events. When a affirmative
logging decision is made a LoggingEvent
instance is
created. This instance is passed around the different log4j
components.
This class is of concern to those wishing to extend log4j.
Field Summary | |
String |
categoryName
The category name. |
String |
fqnOfCategoryClass
Fully qualified name of the calling category class. |
LocationInfo |
locationInfo
Location information for the caller. |
String |
message
The application supplied message of logging event. |
String |
ndc
The nested diagnostic context (NDC) of logging event. |
boolean |
ndcLookupRequired
Have we tried to do an NDC lookup? If we did, there is no need to do it again. |
Priority |
priority
Priority of logging event. |
String |
threadName
The name of thread in which this logging event was generated. |
Throwable |
throwable
The throwable associated with this logging event. |
String |
throwableInformation
This variable collects the info on a throwable. |
long |
timeStamp
The number of milliseconds elapsed from 1/1/1970 until logging event was created. |
Constructor Summary | |
LoggingEvent(String fqnOfCategoryClass,
Category category,
Priority priority,
String message,
Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters. |
Method Summary | |
String |
getNDC()
|
static long |
getStartTime()
Returns the time when the application started, in milliseconds elapsed since 01.01.1970. |
String |
getThreadName()
|
String |
getThrowableInformation()
|
void |
setLocationInformation()
Set the location information for this logging event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public transient String fqnOfCategoryClass
public String categoryName
public transient Priority priority
public String ndc
public boolean ndcLookupRequired
public String message
public String threadName
public transient Throwable throwable
public String throwableInformation
public long timeStamp
public LocationInfo locationInfo
Constructor Detail |
public LoggingEvent(String fqnOfCategoryClass, Category category, Priority priority, String message, Throwable throwable)
Except timeStamp
all the other fields of
LoggingEvent
are filled when actually needed.
category
- The category of this event.priority
- The priority of this event.message
- The message of this event.throwable
- The throwable of this event.Method Detail |
public static long getStartTime()
public String getNDC()
public String getThreadName()
public String getThrowableInformation()
public void setLocationInformation()
|
Log4j 0.9.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |