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.
|
boolean |
isIncludeStacktrace()
If "true", includes the stacktrace of any Throwable in the generated JSON, defaults to "true".
|
boolean |
isLocationInfo() |
boolean |
isProperties() |
boolean |
isPropertiesAsList() |
B |
setIncludeStacktrace(boolean includeStacktrace)
If "true", includes the stacktrace of any Throwable in the generated JSON, defaults to "true".
|
B |
setLocationInfo(boolean locationInfo) |
B |
setProperties(boolean properties) |
B |
setPropertiesAsList(boolean propertiesAsList) |
getEventEol, isCompact, isComplete, setCompact, setComplete, setEventEol
getCharset, getFooterSerializer, getHeaderSerializer, setCharset, setFooterSerializer, setHeaderSerializer
asBuilder, getConfiguration, getFooter, getHeader, setConfiguration, setFooter, setHeader
public JsonLayout build()
Builder
build
in interface Builder<JsonLayout>
public boolean isLocationInfo()
public boolean isProperties()
public boolean isPropertiesAsList()
public boolean isIncludeStacktrace()
public B setLocationInfo(boolean locationInfo)
public B setProperties(boolean properties)
public B setPropertiesAsList(boolean propertiesAsList)
public B setIncludeStacktrace(boolean includeStacktrace)
includeStacktrace
- If "true", includes the stacktrace of any Throwable in the generated JSON, defaults to "true".Copyright © 1999-2017. 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.