org.apache.log
public final class LogEvent extends Object implements Serializable
Method Summary | |
---|---|
String | getCategory()
Get the category that LogEvent relates to.
|
ContextMap | getContextMap()
Get ContextMap associated with LogEvent
|
ContextStack | getContextStack()
Get ContextStack associated with LogEvent
|
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.
|
Throwable | getThrowable()
Get throwabe instance associated with event.
|
long | getTime()
Get the absolute time of the log event.
|
void | setCategory(String category)
Set the LogEvent category.
|
void | setContextMap(ContextMap contextMap)
Set the ContextMap for this LogEvent.
|
void | setContextStack(ContextStack contextStack)
Set the ContextStack for this LogEvent.
|
void | setMessage(String message)
Set the message for LogEvent.
|
void | setPriority(Priority priority)
Set the priority of LogEvent.
|
void | setThrowable(Throwable throwable)
Set the throwable for LogEvent.
|
void | setTime(long time)
Set the absolute time of LogEvent.
|
Returns: the name of category
Returns: the ContextMap
Deprecated: ContextStack has been deprecated and thus so has this method
Get ContextStack associated with LogEventReturns: the ContextStack
Returns: the message
Returns: the LogEvent Priority
Returns: the time
Returns: the Throwable
Returns: the absolute time
Parameters: category the category
Parameters: contextMap the context map
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
Parameters: message the message
Parameters: priority the new LogEvent priority
Parameters: throwable the instance of Throwable
Parameters: time the time