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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]private StackTraceElement[]private Stringprivate Levelprivate LoggerContextVOprivate Stringprivate org.slf4j.Markerprivate Stringprivate static final intprivate static final Stringprivate static final longprivate Stringprivate ThrowableProxyVOprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingEventVObuild(ILoggingEvent le) booleanObject[]Return caller data associated with this event.longgetLevel()org.slf4j.MarkergetMdc()Synonym for [@link #getMDCPropertyMap}.Returns the MDC map.longbooleanIf this event has caller data, then true is returned.inthashCode()voidprivate voidprivate void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NULL_ARGUMENT_ARRAY
private static final int NULL_ARGUMENT_ARRAY- See Also:
-
NULL_ARGUMENT_ARRAY_ELEMENT
- See Also:
-
threadName
-
loggerName
-
loggerContextVO
-
level
-
message
-
formattedMessage
-
argumentArray
-
throwableProxy
-
callerDataArray
-
marker
private org.slf4j.Marker marker -
mdcPropertyMap
-
timeStamp
private long timeStamp
-
-
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
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
-
getMarker
public org.slf4j.Marker getMarker()- Specified by:
getMarkerin interfaceILoggingEvent
-
getTimeStamp
public long getTimeStamp()- Specified by:
getTimeStampin 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
-
prepareForDeferredProcessing
public void prepareForDeferredProcessing()- Specified by:
prepareForDeferredProcessingin interfaceDeferredProcessingAware- Specified by:
prepareForDeferredProcessingin interfaceILoggingEvent
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
hashCode
public int hashCode() -
equals
-