org.apache.log
public final class LogEvent extends Object implements Serializable
| Field Summary | |
|---|---|
| String | m_category |
| ContextMap | m_contextMap |
| String | m_message |
| Priority | m_priority |
| Throwable | m_throwable |
| long | m_time |
| static long | START_TIME |
| Method Summary | |
|---|---|
| String | getCategory()
Get the category that LogEvent relates to.
|
| ContextMap | getContextMap()
Get ContextMap 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.
|
| Object | readResolve()
Helper method that replaces deserialized priority with correct singleton.
|
| void | setCategory(String category)
Set the LogEvent category.
|
| void | setContextMap(ContextMap contextMap)
Set the ContextMap 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
Returns: the message
Returns: the LogEvent Priority
Returns: the time
Returns: the Throwable
Returns: the absolute time
Returns: the singleton version of object
Throws: ObjectStreamException if an error occurs
Parameters: category the category
Parameters: contextMap the context map
Parameters: message the message
Parameters: priority the new LogEvent priority
Parameters: throwable the instance of Throwable
Parameters: time the time