Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.log.LogEvent
public final class LogEvent
extends java.lang.Object
implements Serializable
Method Summary | |
String |
|
ContextMap |
|
ContextStack |
|
String |
|
Priority |
|
long |
|
Throwable |
|
long |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public final String getCategory()
Get the category that LogEvent relates to.
- Returns:
- the name of category
public final ContextMap getContextMap()
Get ContextMap associated with LogEvent
- Returns:
- the ContextMap
public final ContextStack getContextStack()
Deprecated. ContextStack has been deprecated and thus so has this method
Get ContextStack associated with LogEvent
- Returns:
- the ContextStack
public final String getMessage()
Get the message associated with event.
- Returns:
- the message
public final Priority getPriority()
Get Priority for LogEvent.
- Returns:
- the LogEvent Priority
public final long getRelativeTime()
Get the time of the log event relative to start of application.
- Returns:
- the time
public final Throwable getThrowable()
Get throwabe instance associated with event.
- Returns:
- the Throwable
public final long getTime()
Get the absolute time of the log event.
- Returns:
- the absolute time
public final void setCategory(String category)
Set the LogEvent category.
- Parameters:
category
- the category
public final void setContextMap(ContextMap contextMap)
Set the ContextMap for this LogEvent.
- Parameters:
contextMap
- the context map
public final void setContextStack(ContextStack contextStack)
Deprecated. ContextStack has been deprecated and thus so has this method
Set the ContextStack for this LogEvent. Note that if this LogEvent ever changes threads, the ContextStack must be cloned.
- Parameters:
contextStack
- the context stack
public final void setMessage(String message)
Set the message for LogEvent.
- Parameters:
message
- the message
public final void setPriority(Priority priority)
Set the priority of LogEvent.
- Parameters:
priority
- the new LogEvent priority
public final void setThrowable(Throwable throwable)
Set the throwable for LogEvent.
- Parameters:
throwable
- the instance of Throwable
public final void setTime(long time)
Set the absolute time of LogEvent.
- Parameters:
time
- the time