- java.lang.Object
-
- ch.qos.logback.classic.spi.LoggingEventVO
-
- All Implemented Interfaces:
ILoggingEvent,DeferredProcessingAware,Serializable
public class LoggingEventVO extends Object implements ILoggingEvent, Serializable
A read-only and serializable implementation ofILoggingEvent.- Since:
- 0.9.16
- Author:
- Ceki Gülcü
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoggingEventVO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoggingEventVObuild(ILoggingEvent le)booleanequals(Object obj)Object[]getArgumentArray()StackTraceElement[]getCallerData()Return caller data associated with this event.longgetContextBirthTime()LoggerContextVOgetContextLoggerRemoteView()StringgetFormattedMessage()List<org.slf4j.event.KeyValuePair>getKeyValuePairs()A list ofKeyValuePairobjects.LevelgetLevel()LoggerContextVOgetLoggerContextVO()StringgetLoggerName()List<org.slf4j.Marker>getMarkerList()Since SLF4J 2.0.0, the slf4j logging API assumes the possibility of multiple Marker instances in a logging event.Map<String,String>getMdc()Synonym for [@link #getMDCPropertyMap}.Map<String,String>getMDCPropertyMap()Returns the MDC map.StringgetMessage()intgetNanoseconds()Return the number of elapsed nanoseconds found inILoggingEvent.getInstant()May return -1 if data unavailable.longgetSequenceNumber()The sequence number associated with this event.StringgetThreadName()IThrowableProxygetThrowableProxy()longgetTimeStamp()Return the number of elapsed milliseconds since epoch.booleanhasCallerData()If this event has caller data, then true is returned.inthashCode()voidprepareForDeferredProcessing()-
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 Detail
-
LoggingEventVO
public LoggingEventVO()
-
-
Method Detail
-
build
public static LoggingEventVO build(ILoggingEvent le)
-
getThreadName
public String getThreadName()
- Specified by:
getThreadNamein interfaceILoggingEvent
-
getLoggerContextVO
public LoggerContextVO getLoggerContextVO()
- Specified by:
getLoggerContextVOin interfaceILoggingEvent
-
getLoggerName
public String getLoggerName()
- Specified by:
getLoggerNamein interfaceILoggingEvent
-
getLevel
public Level getLevel()
- Specified by:
getLevelin interfaceILoggingEvent
-
getMessage
public String getMessage()
- Specified by:
getMessagein interfaceILoggingEvent
-
getFormattedMessage
public String getFormattedMessage()
- Specified by:
getFormattedMessagein interfaceILoggingEvent
-
getArgumentArray
public Object[] getArgumentArray()
- Specified by:
getArgumentArrayin interfaceILoggingEvent
-
getThrowableProxy
public IThrowableProxy getThrowableProxy()
- Specified by:
getThrowableProxyin interfaceILoggingEvent
-
getCallerData
public StackTraceElement[] 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
public List<org.slf4j.Marker> 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
public long 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
public int 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
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
public LoggerContextVO getContextLoggerRemoteView()
-
getMDCPropertyMap
public Map<String,String> 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
public Map<String,String> getMdc()
Description copied from interface:ILoggingEventSynonym for [@link #getMDCPropertyMap}.- Specified by:
getMdcin interfaceILoggingEvent
-
getKeyValuePairs
public List<org.slf4j.event.KeyValuePair> 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
-
-