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
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingEventVO
build
(ILoggingEvent le) boolean
Object[]
Return caller data associated with this event.long
List
<org.slf4j.event.KeyValuePair> A list ofKeyValuePair
objects.getLevel()
List
<org.slf4j.Marker> Since SLF4J 2.0.0, the slf4j logging API assumes the possibility of multiple Marker instances in a logging event.getMdc()
Synonym for [@link #getMDCPropertyMap}.Returns the MDC map.int
Return the number of elapsed nanoseconds found inILoggingEvent.getInstant()
May return -1 if data unavailable.long
The sequence number associated with this event.long
Return the number of elapsed milliseconds since epoch.boolean
If this event has caller data, then true is returned.int
hashCode()
void
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.qos.logback.classic.spi.ILoggingEvent
getInstant, getMarker
-
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
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
-
getMarkerList
Description copied from interface:ILoggingEvent
Since SLF4J 2.0.0, the slf4j logging API assumes the possibility of multiple Marker instances in a logging event. Consequently, ILoggingEvent needs to cater for this possibility.- Specified by:
getMarkerList
in interfaceILoggingEvent
- Returns:
- the marker list, may be null
-
getTimeStamp
Description copied from interface:ILoggingEvent
Return the number of elapsed milliseconds since epoch.- Specified by:
getTimeStamp
in interfaceILoggingEvent
- Returns:
- the number of elapsed milliseconds since epoch
-
getNanoseconds
Description copied from interface:ILoggingEvent
Return the number of elapsed nanoseconds found inILoggingEvent.getInstant()
May return -1 if data unavailable.- Specified by:
getNanoseconds
in interfaceILoggingEvent
- Returns:
- the number of elapsed nanoseconds as found in
ILoggingEvent.getInstant()
-
getSequenceNumber
Description copied from interface:ILoggingEvent
The sequence number associated with this event.Sequence numbers, if present, should be increasing monotonically.
- Specified by:
getSequenceNumber
in interfaceILoggingEvent
-
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
-
getKeyValuePairs
Description copied from interface:ILoggingEvent
A list ofKeyValuePair
objects. The returned list may be null.- Specified by:
getKeyValuePairs
in interfaceILoggingEvent
- Returns:
- may be null
-
prepareForDeferredProcessing
- Specified by:
prepareForDeferredProcessing
in interfaceDeferredProcessingAware
- Specified by:
prepareForDeferredProcessing
in interfaceILoggingEvent
-
hashCode
-
equals
-