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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringDeprecated.Get the category that LogEvent relates to.final ContextMapDeprecated.Get ContextMap associated with LogEventfinal StringDeprecated.Get the message associated with event.final PriorityDeprecated.Get Priority for LogEvent.final longDeprecated.Get the time of the log event relative to start of application.final ThrowableDeprecated.Get throwable instance associated with event.final longgetTime()Deprecated.Get the absolute time of the log event.final voidsetCategory(String category) Deprecated.Set the LogEvent category.final voidsetContextMap(ContextMap contextMap) Deprecated.Set the ContextMap for this LogEvent.final voidsetMessage(String message) Deprecated.Set the message for LogEvent.final voidsetPriority(Priority priority) Deprecated.Set the priority of LogEvent.final voidsetThrowable(Throwable throwable) Deprecated.Set the throwable for LogEvent.final voidsetTime(long time) Deprecated.Set the absolute time of LogEvent.
- 
Constructor Details- 
LogEventpublic LogEvent()Deprecated.
 
- 
- 
Method Details- 
getPriorityDeprecated.Get Priority for LogEvent.- Returns:
- the LogEvent Priority
 
- 
setPriorityDeprecated.Set the priority of LogEvent.- Parameters:
- priority- the new LogEvent priority
 
- 
getContextMapDeprecated.Get ContextMap associated with LogEvent- Returns:
- the ContextMap
 
- 
setContextMapDeprecated.Set the ContextMap for this LogEvent.- Parameters:
- contextMap- the context map
 
- 
getCategoryDeprecated.Get the category that LogEvent relates to.- Returns:
- the name of category
 
- 
getMessageDeprecated.Get the message associated with event.- Returns:
- the message
 
- 
getThrowableDeprecated.Get throwable instance associated with event.- Returns:
- the Throwable
 
- 
getTimepublic final long getTime()Deprecated.Get the absolute time of the log event.- Returns:
- the absolute time
 
- 
getRelativeTimepublic final long getRelativeTime()Deprecated.Get the time of the log event relative to start of application.- Returns:
- the time
 
- 
setCategoryDeprecated.Set the LogEvent category.- Parameters:
- category- the category
 
- 
setMessageDeprecated.Set the message for LogEvent.- Parameters:
- message- the message
 
- 
setThrowableDeprecated.Set the throwable for LogEvent.- Parameters:
- throwable- the instance of Throwable
 
- 
setTimepublic final void setTime(long time) Deprecated.Set the absolute time of LogEvent.- Parameters:
- time- the time
 
 
-