|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.spi.LoggingEvent
com.mindtree.techworks.insight.spi.LogEvent
public class LogEvent
The LogEvent
class is a derivative of the Apache log4j LoggingEvent class.
Provides constructors to support creating LoggingEvent instances from log4j-like
log files.
LoggingEvent
,
Serialized FormField Summary |
---|
Fields inherited from class org.apache.log4j.spi.LoggingEvent |
---|
categoryName, fqnOfCategoryClass, level, timeStamp |
Constructor Summary | |
---|---|
LogEvent()
No args constructor for this class |
|
LogEvent(org.apache.log4j.spi.LoggingEvent event)
Constructor for this class. |
|
LogEvent(java.lang.Object message)
Constructor for this class. |
Method Summary | |
---|---|
java.lang.String |
getExceptionName()
|
LogNamespace |
getNamespace()
|
long |
getRelativeTime()
|
java.lang.String[] |
getThrowableStrRepresentation()
Returns the Throwable information contained in this LogEvent as a String array |
void |
setExceptionName(java.lang.String exceptionName)
|
void |
setNamespace(LogNamespace namespace)
Sets the namespace information for this LogEvent |
void |
setRelativeTime(long relativeTime)
|
Methods inherited from class org.apache.log4j.spi.LoggingEvent |
---|
equals, getFQNOfLoggerClass, getLevel, getLocationInformation, getLogger, getLoggerName, getMDC, getMDCCopy, getMessage, getNDC, getProperties, getProperty, getPropertyKeySet, getRenderedMessage, getSequenceCount, getSequenceNumber, getStartTime, getThreadName, getThrowableInformation, getThrowableStrRep, getTimeStamp, hashCode, initializeProperties, locationInformationExists, prepareForDeferredProcessing, setFQNOfLoggerClass, setLevel, setLocationInformation, setLogger, setLoggerName, setMessage, setNDC, setProperties, setProperty, setRenderedMessage, setSequenceNumber, setThreadName, setThrowableInformation, setTimeStamp |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogEvent()
public LogEvent(java.lang.Object message)
message
- non-null message string for this LogEventpublic LogEvent(org.apache.log4j.spi.LoggingEvent event)
event
- the LoggingEvent instance to use for creating an instance of this classMethod Detail |
---|
public java.lang.String[] getThrowableStrRepresentation()
public LogNamespace getNamespace()
public void setNamespace(LogNamespace namespace)
namespace
- The namespace to set.public java.lang.String getExceptionName()
public void setExceptionName(java.lang.String exceptionName)
exceptionName
- The exceptionName to set.public long getRelativeTime()
public void setRelativeTime(long relativeTime)
relativeTime
- The relativeTime to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |