Package ch.qos.logback.classic.spi
Class LoggingEventVO
java.lang.Object
ch.qos.logback.classic.spi.LoggingEventVO
- All Implemented Interfaces:
ILoggingEvent
,DeferredProcessingAware
,Serializable
A read-only and serializable implementation of
ILoggingEvent
.- Since:
- 0.9.16
- Author:
- Ceki Gülcü
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingEventVO
build
(ILoggingEvent le) boolean
Object[]
Return caller data associated with this event.long
getLevel()
org.slf4j.Marker
getMdc()
Synonym for [@link #getMDCPropertyMap}.Returns the MDC map.long
boolean
If this event has caller data, then true is returned.int
hashCode()
void
-
Constructor Details
-
LoggingEventVO
public LoggingEventVO()
-
-
Method Details
-
build
-
getThreadName
- Specified by:
getThreadName
in interfaceILoggingEvent
-
getLoggerContextVO
- Specified by:
getLoggerContextVO
in interfaceILoggingEvent
-
getLoggerName
- Specified by:
getLoggerName
in interfaceILoggingEvent
-
getLevel
- Specified by:
getLevel
in interfaceILoggingEvent
-
getMessage
- Specified by:
getMessage
in interfaceILoggingEvent
-
getFormattedMessage
- Specified by:
getFormattedMessage
in interfaceILoggingEvent
-
getArgumentArray
- Specified by:
getArgumentArray
in interfaceILoggingEvent
-
getThrowableProxy
- Specified by:
getThrowableProxy
in interfaceILoggingEvent
-
getCallerData
Description copied from interface:ILoggingEvent
Return caller data associated with this event. Note that calling this event may trigger the computation of caller data.- Specified by:
getCallerData
in interfaceILoggingEvent
- Returns:
- the caller data associated with this event.
- See Also:
-
hasCallerData
public boolean hasCallerData()Description copied from interface:ILoggingEvent
If this event has caller data, then true is returned. Otherwise the returned value is null.Logback components wishing to use caller data if available without causing it to be computed can invoke this method before invoking
ILoggingEvent.getCallerData()
.- Specified by:
hasCallerData
in interfaceILoggingEvent
- Returns:
- whether this event has caller data
-
getMarker
public org.slf4j.Marker getMarker()- Specified by:
getMarker
in interfaceILoggingEvent
-
getTimeStamp
public long getTimeStamp()- Specified by:
getTimeStamp
in interfaceILoggingEvent
-
getContextBirthTime
public long getContextBirthTime() -
getContextLoggerRemoteView
-
getMDCPropertyMap
Description copied from interface:ILoggingEvent
Returns the MDC map. The returned value can be an empty map but not null.- Specified by:
getMDCPropertyMap
in interfaceILoggingEvent
-
getMdc
Description copied from interface:ILoggingEvent
Synonym for [@link #getMDCPropertyMap}.- Specified by:
getMdc
in interfaceILoggingEvent
-
prepareForDeferredProcessing
public void prepareForDeferredProcessing()- Specified by:
prepareForDeferredProcessing
in interfaceDeferredProcessingAware
- Specified by:
prepareForDeferredProcessing
in interfaceILoggingEvent
-
hashCode
public int hashCode() -
equals
-