java.lang.Object
org.slf4j.spi.DefaultLoggingEventBuilder
- All Implemented Interfaces:
CallerBoundaryAware,LoggingEventBuilder
public class DefaultLoggingEventBuilder
extends Object
implements LoggingEventBuilder, CallerBoundaryAware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArgument(Object p)addArgument(Supplier<?> objectSupplier)addKeyValue(String key, Object value)addKeyValue(String key, Supplier<Object> value)Add a marker to the current logging event being built.voidvoidvoidvoidvoidprotected voidlog(LoggingEvent logggingEvent)voidsetCallerBoundary(String fqcn)Add a fqcn (fully qualified class name) to this event, presumed to be the caller boundary.
-
Field Details
-
loggingEvent
-
logger
-
-
Constructor Details
-
DefaultLoggingEventBuilder
-
-
Method Details
-
addMarker
Add a marker to the current logging event being built. It is possible to add multiple markers to the same logging event.- Specified by:
addMarkerin interfaceLoggingEventBuilder- Parameters:
marker- the marker to add
-
setCause
- Specified by:
setCausein interfaceLoggingEventBuilder
-
addArgument
- Specified by:
addArgumentin interfaceLoggingEventBuilder
-
addArgument
- Specified by:
addArgumentin interfaceLoggingEventBuilder
-
setCallerBoundary
Description copied from interface:CallerBoundaryAwareAdd a fqcn (fully qualified class name) to this event, presumed to be the caller boundary.- Specified by:
setCallerBoundaryin interfaceCallerBoundaryAware
-
log
- Specified by:
login interfaceLoggingEventBuilder
-
log
- Specified by:
login interfaceLoggingEventBuilder
-
log
- Specified by:
login interfaceLoggingEventBuilder
-
log
- Specified by:
login interfaceLoggingEventBuilder
-
log
-
log
- Specified by:
login interfaceLoggingEventBuilder
-
addKeyValue
- Specified by:
addKeyValuein interfaceLoggingEventBuilder
-
addKeyValue
- Specified by:
addKeyValuein interfaceLoggingEventBuilder
-