Package org.apache.log4j.chainsaw
Class EventDetails
- java.lang.Object
-
- org.apache.log4j.chainsaw.EventDetails
-
class EventDetails extends java.lang.ObjectRepresents the details of a logging event. It is intended to overcome the problem that a LoggingEvent cannot be constructed with purely fake data.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringmCategoryNamethe category of the eventprivate java.lang.StringmLocationDetailsthe location details for the eventprivate java.lang.StringmMessagethe msg for the eventprivate java.lang.StringmNDCthe NDC for the eventprivate PrioritymPrioritythe priority of the eventprivate java.lang.StringmThreadNamethe thread for the eventprivate java.lang.String[]mThrowableStrRepthe throwable details the eventprivate longmTimeStampthe time of the event
-
Constructor Summary
Constructors Constructor Description EventDetails(long aTimeStamp, Priority aPriority, java.lang.String aCategoryName, java.lang.String aNDC, java.lang.String aThreadName, java.lang.String aMessage, java.lang.String[] aThrowableStrRep, java.lang.String aLocationDetails)Creates a newEventDetailsinstance.EventDetails(LoggingEvent aEvent)Creates a newEventDetailsinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.StringgetCategoryName()(package private) java.lang.StringgetLocationDetails()(package private) java.lang.StringgetMessage()(package private) java.lang.StringgetNDC()(package private) PrioritygetPriority()(package private) java.lang.StringgetThreadName()(package private) java.lang.String[]getThrowableStrRep()(package private) longgetTimeStamp()
-
-
-
Field Detail
-
mTimeStamp
private final long mTimeStamp
the time of the event
-
mPriority
private final Priority mPriority
the priority of the event
-
mCategoryName
private final java.lang.String mCategoryName
the category of the event
-
mNDC
private final java.lang.String mNDC
the NDC for the event
-
mThreadName
private final java.lang.String mThreadName
the thread for the event
-
mMessage
private final java.lang.String mMessage
the msg for the event
-
mThrowableStrRep
private final java.lang.String[] mThrowableStrRep
the throwable details the event
-
mLocationDetails
private final java.lang.String mLocationDetails
the location details for the event
-
-
Constructor Detail
-
EventDetails
EventDetails(long aTimeStamp, Priority aPriority, java.lang.String aCategoryName, java.lang.String aNDC, java.lang.String aThreadName, java.lang.String aMessage, java.lang.String[] aThrowableStrRep, java.lang.String aLocationDetails)Creates a newEventDetailsinstance.- Parameters:
aTimeStamp- alongvalueaPriority- aPriorityvalueaCategoryName- aStringvalueaNDC- aStringvalueaThreadName- aStringvalueaMessage- aStringvalueaThrowableStrRep- aString[]valueaLocationDetails- aStringvalue
-
EventDetails
EventDetails(LoggingEvent aEvent)
Creates a newEventDetailsinstance.- Parameters:
aEvent- aLoggingEventvalue
-
-
Method Detail
-
getTimeStamp
long getTimeStamp()
- See Also:
mTimeStamp
-
getCategoryName
java.lang.String getCategoryName()
- See Also:
mCategoryName
-
getNDC
java.lang.String getNDC()
- See Also:
mNDC
-
getThreadName
java.lang.String getThreadName()
- See Also:
mThreadName
-
getMessage
java.lang.String getMessage()
- See Also:
mMessage
-
getLocationDetails
java.lang.String getLocationDetails()
- See Also:
mLocationDetails
-
getThrowableStrRep
java.lang.String[] getThrowableStrRep()
- See Also:
mThrowableStrRep
-
-