Package org.apache.log4j.chainsaw
Class EventDetails
- java.lang.Object
-
- org.apache.log4j.chainsaw.EventDetails
-
class EventDetails extends java.lang.Object
Represents 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.String
mCategoryName
the category of the eventprivate java.lang.String
mLocationDetails
the location details for the eventprivate java.lang.String
mMessage
the msg for the eventprivate java.lang.String
mNDC
the NDC for the eventprivate Priority
mPriority
the priority of the eventprivate java.lang.String
mThreadName
the thread for the eventprivate java.lang.String[]
mThrowableStrRep
the throwable details the eventprivate long
mTimeStamp
the 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 newEventDetails
instance.EventDetails(LoggingEvent aEvent)
Creates a newEventDetails
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
getCategoryName()
(package private) java.lang.String
getLocationDetails()
(package private) java.lang.String
getMessage()
(package private) java.lang.String
getNDC()
(package private) Priority
getPriority()
(package private) java.lang.String
getThreadName()
(package private) java.lang.String[]
getThrowableStrRep()
(package private) long
getTimeStamp()
-
-
-
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 newEventDetails
instance.- Parameters:
aTimeStamp
- along
valueaPriority
- aPriority
valueaCategoryName
- aString
valueaNDC
- aString
valueaThreadName
- aString
valueaMessage
- aString
valueaThrowableStrRep
- aString[]
valueaLocationDetails
- aString
value
-
EventDetails
EventDetails(LoggingEvent aEvent)
Creates a newEventDetails
instance.- Parameters:
aEvent
- aLoggingEvent
value
-
-
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
-
-