public class Log4jEventBuilder extends Object implements org.slf4j.spi.LoggingEventBuilder
Constructor and Description |
---|
Log4jEventBuilder(Log4jMarkerFactory markerFactory,
LogBuilder logBuilder) |
Modifier and Type | Method and Description |
---|---|
org.slf4j.spi.LoggingEventBuilder |
addArgument(Object p) |
org.slf4j.spi.LoggingEventBuilder |
addArgument(Supplier<?> objectSupplier) |
org.slf4j.spi.LoggingEventBuilder |
addKeyValue(String key,
Object value) |
org.slf4j.spi.LoggingEventBuilder |
addKeyValue(String key,
Supplier<Object> valueSupplier) |
org.slf4j.spi.LoggingEventBuilder |
addMarker(org.slf4j.Marker marker) |
void |
log() |
void |
log(String message) |
void |
log(String message,
Object... args) |
void |
log(String message,
Object arg) |
void |
log(String message,
Object arg0,
Object arg1) |
void |
log(Supplier<String> messageSupplier) |
org.slf4j.spi.LoggingEventBuilder |
setCause(Throwable cause) |
org.slf4j.spi.LoggingEventBuilder |
setMessage(String message) |
org.slf4j.spi.LoggingEventBuilder |
setMessage(Supplier<String> messageSupplier) |
public Log4jEventBuilder(Log4jMarkerFactory markerFactory, LogBuilder logBuilder)
public org.slf4j.spi.LoggingEventBuilder setCause(Throwable cause)
setCause
in interface org.slf4j.spi.LoggingEventBuilder
public org.slf4j.spi.LoggingEventBuilder addMarker(org.slf4j.Marker marker)
addMarker
in interface org.slf4j.spi.LoggingEventBuilder
public org.slf4j.spi.LoggingEventBuilder addArgument(Object p)
addArgument
in interface org.slf4j.spi.LoggingEventBuilder
public org.slf4j.spi.LoggingEventBuilder addArgument(Supplier<?> objectSupplier)
addArgument
in interface org.slf4j.spi.LoggingEventBuilder
public org.slf4j.spi.LoggingEventBuilder addKeyValue(String key, Object value)
addKeyValue
in interface org.slf4j.spi.LoggingEventBuilder
public org.slf4j.spi.LoggingEventBuilder addKeyValue(String key, Supplier<Object> valueSupplier)
addKeyValue
in interface org.slf4j.spi.LoggingEventBuilder
public org.slf4j.spi.LoggingEventBuilder setMessage(String message)
setMessage
in interface org.slf4j.spi.LoggingEventBuilder
public org.slf4j.spi.LoggingEventBuilder setMessage(Supplier<String> messageSupplier)
setMessage
in interface org.slf4j.spi.LoggingEventBuilder
public void log()
log
in interface org.slf4j.spi.LoggingEventBuilder
public void log(String message)
log
in interface org.slf4j.spi.LoggingEventBuilder
public void log(String message, Object arg)
log
in interface org.slf4j.spi.LoggingEventBuilder
public void log(String message, Object arg0, Object arg1)
log
in interface org.slf4j.spi.LoggingEventBuilder
public void log(String message, Object... args)
log
in interface org.slf4j.spi.LoggingEventBuilder
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.