Package org.apache.log
Class LogEvent
java.lang.Object
org.apache.log.LogEvent
- All Implemented Interfaces:
Serializable
Deprecated.
Will be dropped in 3.3
This class encapsulates each individual log event.
LogEvents usually originate at a Logger and are routed
to LogTargets.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Deprecated.Get the category that LogEvent relates to.final ContextMap
Deprecated.Get ContextMap associated with LogEventfinal String
Deprecated.Get the message associated with event.final Priority
Deprecated.Get Priority for LogEvent.final long
Deprecated.Get the time of the log event relative to start of application.final Throwable
Deprecated.Get throwable instance associated with event.final long
getTime()
Deprecated.Get the absolute time of the log event.final void
setCategory
(String category) Deprecated.Set the LogEvent category.final void
setContextMap
(ContextMap contextMap) Deprecated.Set the ContextMap for this LogEvent.final void
setMessage
(String message) Deprecated.Set the message for LogEvent.final void
setPriority
(Priority priority) Deprecated.Set the priority of LogEvent.final void
setThrowable
(Throwable throwable) Deprecated.Set the throwable for LogEvent.final void
setTime
(long time) Deprecated.Set the absolute time of LogEvent.
-
Constructor Details
-
LogEvent
public LogEvent()Deprecated.
-
-
Method Details
-
getPriority
Deprecated.Get Priority for LogEvent.- Returns:
- the LogEvent Priority
-
setPriority
Deprecated.Set the priority of LogEvent.- Parameters:
priority
- the new LogEvent priority
-
getContextMap
Deprecated.Get ContextMap associated with LogEvent- Returns:
- the ContextMap
-
setContextMap
Deprecated.Set the ContextMap for this LogEvent.- Parameters:
contextMap
- the context map
-
getCategory
Deprecated.Get the category that LogEvent relates to.- Returns:
- the name of category
-
getMessage
Deprecated.Get the message associated with event.- Returns:
- the message
-
getThrowable
Deprecated.Get throwable instance associated with event.- Returns:
- the Throwable
-
getTime
public final long getTime()Deprecated.Get the absolute time of the log event.- Returns:
- the absolute time
-
getRelativeTime
public final long getRelativeTime()Deprecated.Get the time of the log event relative to start of application.- Returns:
- the time
-
setCategory
Deprecated.Set the LogEvent category.- Parameters:
category
- the category
-
setMessage
Deprecated.Set the message for LogEvent.- Parameters:
message
- the message
-
setThrowable
Deprecated.Set the throwable for LogEvent.- Parameters:
throwable
- the instance of Throwable
-
setTime
public final void setTime(long time) Deprecated.Set the absolute time of LogEvent.- Parameters:
time
- the time
-