public static class JsonLayout.Builder<B extends JsonLayout.Builder<B>> extends AbstractJacksonLayout.Builder<B> implements Builder<JsonLayout>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JsonLayout |
build()
Builds the object after all configuration has been set.
|
KeyValuePair[] |
getAdditionalFields() |
boolean |
getObjectMessageAsJsonObject() |
boolean |
isPropertiesAsList() |
B |
setAdditionalFields(KeyValuePair[] additionalFields)
Additional fields to set on each log event.
|
B |
setObjectMessageAsJsonObject(boolean objectMessageAsJsonObject) |
B |
setPropertiesAsList(boolean propertiesAsList) |
getEndOfLine, getEventEol, isCompact, isComplete, isIncludeNullDelimiter, isIncludeStacktrace, isLocationInfo, isProperties, isStacktraceAsString, setCompact, setComplete, setEndOfLine, setEventEol, setIncludeNullDelimiter, setIncludeStacktrace, setLocationInfo, setProperties, setStacktraceAsString, toStringOrNull
getCharset, getFooterSerializer, getHeaderSerializer, setCharset, setFooterSerializer, setHeaderSerializer
asBuilder, getConfiguration, getFooter, getHeader, setConfiguration, setFooter, setHeader
public Builder()
public JsonLayout build()
Builder
build
in interface Builder<JsonLayout>
public boolean isPropertiesAsList()
public B setPropertiesAsList(boolean propertiesAsList)
public boolean getObjectMessageAsJsonObject()
public B setObjectMessageAsJsonObject(boolean objectMessageAsJsonObject)
public KeyValuePair[] getAdditionalFields()
getAdditionalFields
in class AbstractJacksonLayout.Builder<B extends JsonLayout.Builder<B>>
public B setAdditionalFields(KeyValuePair[] additionalFields)
AbstractJacksonLayout.Builder
setAdditionalFields
in class AbstractJacksonLayout.Builder<B extends JsonLayout.Builder<B>>
Copyright © 1999-2021 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.