public class AdvancedLogMessageAdapter
extends java.lang.Object
implements org.apache.logging.log4j.message.Message, org.apache.logging.log4j.util.StringBuilderFormattable
Modifier and Type | Field and Description |
---|---|
private static java.lang.Object[] |
EMPTY |
private java.util.function.Consumer<java.lang.StringBuilder> |
logMessageBuilder |
Constructor and Description |
---|
AdvancedLogMessageAdapter(java.util.function.Consumer<java.lang.StringBuilder> logMessageBuilder) |
Modifier and Type | Method and Description |
---|---|
void |
formatTo(java.lang.StringBuilder buffer) |
java.lang.String |
getFormat() |
java.lang.String |
getFormattedMessage() |
java.lang.Object[] |
getParameters() |
java.lang.Throwable |
getThrowable() |
private static final java.lang.Object[] EMPTY
private final java.util.function.Consumer<java.lang.StringBuilder> logMessageBuilder
public AdvancedLogMessageAdapter(java.util.function.Consumer<java.lang.StringBuilder> logMessageBuilder)
public java.lang.String getFormattedMessage()
getFormattedMessage
in interface org.apache.logging.log4j.message.Message
public java.lang.String getFormat()
getFormat
in interface org.apache.logging.log4j.message.Message
public java.lang.Object[] getParameters()
getParameters
in interface org.apache.logging.log4j.message.Message
public java.lang.Throwable getThrowable()
getThrowable
in interface org.apache.logging.log4j.message.Message
public void formatTo(java.lang.StringBuilder buffer)
formatTo
in interface org.apache.logging.log4j.util.StringBuilderFormattable