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()
long
void
setCallerBoundary
(String fqcn) void
setMessage
(String message) void
setThrowable
(Throwable cause) void
setTimeStamp
(long timeStamp)
-
Constructor Details
-
DefaultLoggingEvent
-
-
Method Details
-
addMarker
-
getMarkers
- Specified by:
getMarkers
in interfaceLoggingEvent
-
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.
-