EventDetailspublic class EventDetails extends 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. |
Fields Summary |
---|
private final long | mTimeStampthe time of the event | private final Priority | mPrioritythe priority of the event | private final String | mCategoryNamethe category of the event | private final String | mNDCthe NDC for the event | private final String | mThreadNamethe thread for the event | private final String | mMessagethe msg for the event | private final String[] | mThrowableStrRepthe throwable details the event | private final String | mLocationDetailsthe location details for the event |
Constructors Summary |
---|
EventDetails(long aTimeStamp, Priority aPriority, String aCategoryName, String aNDC, String aThreadName, String aMessage, String[] aThrowableStrRep, String aLocationDetails)Creates a new EventDetails instance.
mTimeStamp = aTimeStamp;
mPriority = aPriority;
mCategoryName = aCategoryName;
mNDC = aNDC;
mThreadName = aThreadName;
mMessage = aMessage;
mThrowableStrRep = aThrowableStrRep;
mLocationDetails = aLocationDetails;
| EventDetails(LoggingEvent aEvent)Creates a new EventDetails instance.
this(aEvent.timeStamp,
aEvent.getLevel(),
aEvent.getLoggerName(),
aEvent.getNDC(),
aEvent.getThreadName(),
aEvent.getRenderedMessage(),
aEvent.getThrowableStrRep(),
(aEvent.getLocationInformation() == null)
? null : aEvent.getLocationInformation().fullInfo);
|
|