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 LoggingEventVObuild(ILoggingEvent le) booleanObject[]Return caller data associated with this event.longList<org.slf4j.event.KeyValuePair> A list ofKeyValuePairobjects.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.intReturn the number of elapsed nanoseconds found inILoggingEvent.getInstant()May return -1 if data unavailable.longThe sequence number associated with this event.longReturn the number of elapsed milliseconds since epoch.booleanIf this event has caller data, then true is returned.inthashCode()voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.classic.spi.ILoggingEvent
getInstant, getMarker
-
Constructor Details
-
LoggingEventVO
public LoggingEventVO()
-
-
Method Details
-
build
-
getThreadName
- Specified by:
getThreadNamein interfaceILoggingEvent
-
getLoggerContextVO
- Specified by:
getLoggerContextVOin interfaceILoggingEvent
-
getLoggerName
- Specified by:
getLoggerNamein interfaceILoggingEvent
-
getLevel
- Specified by:
getLevelin interfaceILoggingEvent
-
getMessage
- Specified by:
getMessagein interfaceILoggingEvent
-
getFormattedMessage
- Specified by:
getFormattedMessagein interfaceILoggingEvent
-
getArgumentArray
- Specified by:
getArgumentArrayin interfaceILoggingEvent
-
getThrowableProxy
- Specified by:
getThrowableProxyin interfaceILoggingEvent
-
getCallerData
Description copied from interface:ILoggingEventReturn caller data associated with this event. Note that calling this event may trigger the computation of caller data.- Specified by:
getCallerDatain interfaceILoggingEvent- Returns:
- the caller data associated with this event.
- See Also:
-
hasCallerData
Description copied from interface:ILoggingEventIf 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:
hasCallerDatain interfaceILoggingEvent- Returns:
- whether this event has caller data
-
getMarkerList
Description copied from interface:ILoggingEventSince 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:
getMarkerListin interfaceILoggingEvent- Returns:
- the marker list, may be null
-
getTimeStamp
Description copied from interface:ILoggingEventReturn the number of elapsed milliseconds since epoch.- Specified by:
getTimeStampin interfaceILoggingEvent- Returns:
- the number of elapsed milliseconds since epoch
-
getNanoseconds
Description copied from interface:ILoggingEventReturn the number of elapsed nanoseconds found inILoggingEvent.getInstant()May return -1 if data unavailable.- Specified by:
getNanosecondsin interfaceILoggingEvent- Returns:
- the number of elapsed nanoseconds as found in
ILoggingEvent.getInstant()
-
getSequenceNumber
Description copied from interface:ILoggingEventThe sequence number associated with this event.Sequence numbers, if present, should be increasing monotonically.
- Specified by:
getSequenceNumberin interfaceILoggingEvent
-
getContextBirthTime
-
getContextLoggerRemoteView
-
getMDCPropertyMap
Description copied from interface:ILoggingEventReturns the MDC map. The returned value can be an empty map but not null.- Specified by:
getMDCPropertyMapin interfaceILoggingEvent
-
getMdc
Description copied from interface:ILoggingEventSynonym for [@link #getMDCPropertyMap}.- Specified by:
getMdcin interfaceILoggingEvent
-
getKeyValuePairs
Description copied from interface:ILoggingEventA list ofKeyValuePairobjects. The returned list may be null.- Specified by:
getKeyValuePairsin interfaceILoggingEvent- Returns:
- may be null
-
prepareForDeferredProcessing
- Specified by:
prepareForDeferredProcessingin interfaceDeferredProcessingAware- Specified by:
prepareForDeferredProcessingin interfaceILoggingEvent
-
hashCode
-
equals
-