|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.log.LogEvent
This class encapsulates each individual log event. LogEvents usually originate at a Logger and are routed to LogTargets.
| Field Summary | |
private java.lang.String |
m_category |
private ContextMap |
m_contextMap |
private ContextStack |
m_contextStackDeprecated. ContextStack has been deprecated and thus so has this field. |
private java.lang.String |
m_message |
private Priority |
m_priority |
private java.lang.Throwable |
m_throwable |
private long |
m_time |
private static long |
START_TIME |
| Constructor Summary | |
LogEvent() |
|
| Method Summary | |
java.lang.String |
getCategory()Get the category that LogEvent relates to. |
ContextMap |
getContextMap()Get ContextMap associated with LogEvent |
ContextStack |
getContextStack()Deprecated. ContextStack has been deprecated and thus so has this method |
java.lang.String |
getMessage()Get the message associated with event. |
Priority |
getPriority()Get Priority for LogEvent. |
long |
getRelativeTime()Get the time of the log event relative to start of application. |
java.lang.Throwable |
getThrowable()Get throwabe instance associated with event. |
long |
getTime()Get the absolute time of the log event. |
private java.lang.Object |
readResolve()Helper method that replaces deserialized priority with correct singleton. |
void |
setCategory(java.lang.String category)Set the LogEvent category. |
void |
setContextMap(ContextMap contextMap)Set the ContextMap for this LogEvent. |
void |
setContextStack(ContextStack contextStack)Deprecated. ContextStack has been deprecated and thus so has this method |
void |
setMessage(java.lang.String message)Set the message for LogEvent. |
void |
setPriority(Priority priority)Set the priority of LogEvent. |
void |
setThrowable(java.lang.Throwable throwable)Set the throwable for LogEvent. |
void |
setTime(long time)Set the absolute time of LogEvent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long START_TIME
private java.lang.String m_category
private java.lang.String m_message
private java.lang.Throwable m_throwable
private long m_time
private Priority m_priority
private ContextMap m_contextMap
private transient ContextStack m_contextStack
| Constructor Detail |
public LogEvent()
| Method Detail |
public final Priority getPriority()
public final void setPriority(Priority priority)
priority - the new LogEvent prioritypublic final ContextMap getContextMap()
public final void setContextMap(ContextMap contextMap)
contextMap - the context mappublic final ContextStack getContextStack()
public final void setContextStack(ContextStack contextStack)
contextStack - the context stackpublic final java.lang.String getCategory()
public final java.lang.String getMessage()
public final java.lang.Throwable getThrowable()
public final long getTime()
public final long getRelativeTime()
public final void setCategory(java.lang.String category)
category - the categorypublic final void setMessage(java.lang.String message)
message - the messagepublic final void setThrowable(java.lang.Throwable throwable)
throwable - the instance of Throwablepublic final void setTime(long time)
time - the time
private java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException - if an error occurs
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||