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 String
private Level
private LoggerContextVO
private String
private org.slf4j.Marker
private String
private static final int
private static final String
private static final long
private String
private ThrowableProxyVO
private long
-
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
private void
private 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:
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
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
ClassNotFoundException
-
hashCode
public int hashCode() -
equals
-