FileDocCategorySizeDatePackage
EventDetails.javaAPI DocApache log4j 1.2.154197Sat Aug 25 00:09:40 BST 2007org.apache.log4j.chainsaw

EventDetails

public 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.
author
Oliver Burn
version
1.0

Fields Summary
private final long
mTimeStamp
the time of the event
private final Priority
mPriority
the priority of the event
private final String
mCategoryName
the category of the event
private final String
mNDC
the NDC for the event
private final String
mThreadName
the thread for the event
private final String
mMessage
the msg for the event
private final String[]
mThrowableStrRep
the throwable details the event
private final String
mLocationDetails
the 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.

param
aTimeStamp a long value
param
aPriority a Priority value
param
aCategoryName a String value
param
aNDC a String value
param
aThreadName a String value
param
aMessage a String value
param
aThrowableStrRep a String[] value
param
aLocationDetails a String value

        mTimeStamp = aTimeStamp;
        mPriority = aPriority;
        mCategoryName = aCategoryName;
        mNDC = aNDC;
        mThreadName = aThreadName;
        mMessage = aMessage;
        mThrowableStrRep = aThrowableStrRep;
        mLocationDetails = aLocationDetails;
    
EventDetails(LoggingEvent aEvent)
Creates a new EventDetails instance.

param
aEvent a LoggingEvent value


        this(aEvent.timeStamp,
             aEvent.getLevel(),
             aEvent.getLoggerName(),
             aEvent.getNDC(),
             aEvent.getThreadName(),
             aEvent.getRenderedMessage(),
             aEvent.getThrowableStrRep(),
             (aEvent.getLocationInformation() == null)
             ? null : aEvent.getLocationInformation().fullInfo);
    
Methods Summary
java.lang.StringgetCategoryName()

see
#mCategoryName

        return mCategoryName;
    
java.lang.StringgetLocationDetails()

see
#mLocationDetails

        return mLocationDetails;
    
java.lang.StringgetMessage()

see
#mMessage

        return mMessage;
    
java.lang.StringgetNDC()

see
#mNDC

        return mNDC;
    
org.apache.log4j.PrioritygetPriority()

see
#mPriority

        return mPriority;
    
java.lang.StringgetThreadName()

see
#mThreadName

        return mThreadName;
    
java.lang.String[]getThrowableStrRep()

see
#mThrowableStrRep

        return mThrowableStrRep;
    
longgetTimeStamp()

see
#mTimeStamp

        return mTimeStamp;