Package ch.qos.logback.classic.spi
Interface ILoggingEvent
- All Superinterfaces:
DeferredProcessingAware
- All Known Implementing Classes:
LoggingEvent
,LoggingEventVO
The central interface in logback-classic. In a nutshell, logback-classic is
nothing more than a processing chain built around this interface.
- Since:
- 0.9.16
- Author:
- Ceki Gülcü
-
Method Summary
Modifier and TypeMethodDescriptionObject[]
Return caller data associated with this event.List<org.slf4j.event.KeyValuePair>
A list ofKeyValuePair
objects.getLevel()
List<org.slf4j.Marker>
getMdc()
Deprecated.Replaced by [@link #getMDCPropertyMap}Returns the MDC map.long
The sequence number associated with this event.long
boolean
If this event has caller data, then true is returned.void
-
Method Details
-
getThreadName
String getThreadName() -
getLevel
Level getLevel() -
getMessage
String getMessage() -
getArgumentArray
Object[] getArgumentArray() -
getFormattedMessage
String getFormattedMessage() -
getLoggerName
String getLoggerName() -
getLoggerContextVO
LoggerContextVO getLoggerContextVO() -
getThrowableProxy
IThrowableProxy getThrowableProxy() -
getCallerData
StackTraceElement[] getCallerData()Return caller data associated with this event. Note that calling this event may trigger the computation of caller data.- Returns:
- the caller data associated with this event.
- See Also:
hasCallerData()
-
hasCallerData
boolean hasCallerData()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
getCallerData()
.- Returns:
- whether this event has caller data
-
getMarkerList
List<org.slf4j.Marker> getMarkerList() -
getMDCPropertyMap
Returns the MDC map. The returned value can be an empty map but not null. -
getMdc
Deprecated.Replaced by [@link #getMDCPropertyMap}Synonym for [@link #getMDCPropertyMap}. -
getTimeStamp
long getTimeStamp() -
getSequenceNumber
long getSequenceNumber()The sequence number associated with this event.Sequence numbers, if present, should be increasing monotonically.
- Since:
- 1.3.0
-
getKeyValuePairs
List<org.slf4j.event.KeyValuePair> getKeyValuePairs()A list ofKeyValuePair
objects. The returned list may be null.- Returns:
- may be null
- Since:
- 1.3.0
-
prepareForDeferredProcessing
void prepareForDeferredProcessing()- Specified by:
prepareForDeferredProcessing
in interfaceDeferredProcessingAware
-