Package org.slf4j.event
Class DefaultLoggingEvent
java.lang.Object
org.slf4j.event.DefaultLoggingEvent
- All Implemented Interfaces:
LoggingEvent
A default implementation of
LoggingEvent.- Since:
- 2.0.0
- Author:
- Ceki Gülcü
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddArguments(Object... args) voidaddKeyValue(String key, Object value) voidObject[]Returns the presumed caller boundary provided by the logging library (not the user of the library).getLevel()List of markers in the event, might be null.longvoidsetCallerBoundary(String fqcn) voidsetMessage(String message) voidsetThrowable(Throwable cause) voidsetTimeStamp(long timeStamp)
-
Constructor Details
-
DefaultLoggingEvent
-
-
Method Details
-
addMarker
-
getMarkers
Description copied from interface:LoggingEventList of markers in the event, might be null.- Specified by:
getMarkersin interfaceLoggingEvent- Returns:
- markers in the event, might be null.
-
addArgument
-
addArguments
-
getArguments
- Specified by:
getArgumentsin interfaceLoggingEvent
-
getArgumentArray
- Specified by:
getArgumentArrayin interfaceLoggingEvent
-
addKeyValue
-
getKeyValuePairs
- Specified by:
getKeyValuePairsin interfaceLoggingEvent
-
setThrowable
-
getLevel
- Specified by:
getLevelin interfaceLoggingEvent
-
getLoggerName
- Specified by:
getLoggerNamein interfaceLoggingEvent
-
getMessage
- Specified by:
getMessagein interfaceLoggingEvent
-
setMessage
-
getThrowable
- Specified by:
getThrowablein interfaceLoggingEvent
-
getThreadName
- Specified by:
getThreadNamein interfaceLoggingEvent
-
getTimeStamp
- Specified by:
getTimeStampin interfaceLoggingEvent
-
setTimeStamp
-
setCallerBoundary
-
getCallerBoundary
Description copied from interface:LoggingEventReturns the presumed caller boundary provided by the logging library (not the user of the library). Null by default.- Specified by:
getCallerBoundaryin interfaceLoggingEvent- Returns:
- presumed caller, null by default.
-