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:
- Serialized Form
-
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>getMdc()Synonym for [@link #getMDCPropertyMap}.Returns the MDC map.longThe sequence number associated with this event.longbooleanIf this event has caller data, then true is returned.inthashCode()void
-
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:
ILoggingEvent.hasCallerData()
-
hasCallerData
public boolean 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
- Specified by:
getMarkerListin interfaceILoggingEvent
-
getTimeStamp
public long getTimeStamp()- Specified by:
getTimeStampin interfaceILoggingEvent
-
getSequenceNumber
public long 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
public long 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
public void prepareForDeferredProcessing()- Specified by:
prepareForDeferredProcessingin interfaceDeferredProcessingAware- Specified by:
prepareForDeferredProcessingin interfaceILoggingEvent
-
hashCode
public int hashCode() -
equals
-