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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addArguments
(Object... args) void
addKeyValue
(String key, Object value) void
Object[]
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.long
void
setCallerBoundary
(String fqcn) void
setMessage
(String message) void
setThrowable
(Throwable cause) void
setTimeStamp
(long timeStamp)
-
Constructor Details
-
DefaultLoggingEvent
-
-
Method Details
-
addMarker
-
getMarkers
Description copied from interface:LoggingEvent
List of markers in the event, might be null.- Specified by:
getMarkers
in interfaceLoggingEvent
- Returns:
- markers in the event, might be null.
-
addArgument
-
addArguments
-
getArguments
- Specified by:
getArguments
in interfaceLoggingEvent
-
getArgumentArray
- Specified by:
getArgumentArray
in interfaceLoggingEvent
-
addKeyValue
-
getKeyValuePairs
- Specified by:
getKeyValuePairs
in interfaceLoggingEvent
-
setThrowable
-
getLevel
- Specified by:
getLevel
in interfaceLoggingEvent
-
getLoggerName
- Specified by:
getLoggerName
in interfaceLoggingEvent
-
getMessage
- Specified by:
getMessage
in interfaceLoggingEvent
-
setMessage
-
getThrowable
- Specified by:
getThrowable
in interfaceLoggingEvent
-
getThreadName
- Specified by:
getThreadName
in interfaceLoggingEvent
-
getTimeStamp
- Specified by:
getTimeStamp
in interfaceLoggingEvent
-
setTimeStamp
-
setCallerBoundary
-
getCallerBoundary
Description copied from interface:LoggingEvent
Returns the presumed caller boundary provided by the logging library (not the user of the library). Null by default.- Specified by:
getCallerBoundary
in interfaceLoggingEvent
- Returns:
- presumed caller, null by default.
-