Class StackdriverJsonLayout.Builder<B extends StackdriverJsonLayout.Builder<B>>
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.AbstractLayout.Builder<B>
-
- org.apache.logging.log4j.core.layout.AbstractStringLayout.Builder<B>
-
- org.curioswitch.common.server.framework.logging.AbstractJacksonLayout.Builder<B>
-
- org.curioswitch.common.server.framework.logging.StackdriverJsonLayout.Builder<B>
-
- All Implemented Interfaces:
org.apache.logging.log4j.core.util.Builder<StackdriverJsonLayout>
- Enclosing class:
- StackdriverJsonLayout
public static class StackdriverJsonLayout.Builder<B extends StackdriverJsonLayout.Builder<B>> extends org.curioswitch.common.server.framework.logging.AbstractJacksonLayout.Builder<B> implements org.apache.logging.log4j.core.util.Builder<StackdriverJsonLayout>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackdriverJsonLayout
build()
org.apache.logging.log4j.core.util.KeyValuePair[]
getAdditionalFields()
boolean
getObjectMessageAsJsonObject()
boolean
isPropertiesAsList()
B
setAdditionalFields(org.apache.logging.log4j.core.util.KeyValuePair[] additionalFields)
Additional fields to set on each log event.B
setObjectMessageAsJsonObject(boolean objectMessageAsJsonObject)
B
setPropertiesAsList(boolean propertiesAsList)
-
Methods inherited from class org.curioswitch.common.server.framework.logging.AbstractJacksonLayout.Builder
getEventEol, isCompact, isComplete, isIncludeNullDelimiter, isIncludeStacktrace, isLocationInfo, isProperties, isStacktraceAsString, setCompact, setComplete, setEventEol, setIncludeNullDelimiter, setIncludeStacktrace, setLocationInfo, setProperties, setStacktraceAsString, toStringOrNull
-
Methods inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout.Builder
getCharset, getFooterSerializer, getHeaderSerializer, setCharset, setFooterSerializer, setHeaderSerializer
-
-
-
-
Method Detail
-
build
public StackdriverJsonLayout build()
- Specified by:
build
in interfaceorg.apache.logging.log4j.core.util.Builder<B extends StackdriverJsonLayout.Builder<B>>
-
getAdditionalFields
public org.apache.logging.log4j.core.util.KeyValuePair[] getAdditionalFields()
- Overrides:
getAdditionalFields
in classorg.curioswitch.common.server.framework.logging.AbstractJacksonLayout.Builder<B extends StackdriverJsonLayout.Builder<B>>
-
getObjectMessageAsJsonObject
public boolean getObjectMessageAsJsonObject()
-
isPropertiesAsList
public boolean isPropertiesAsList()
-
setAdditionalFields
public B setAdditionalFields(org.apache.logging.log4j.core.util.KeyValuePair[] additionalFields)
Description copied from class:org.curioswitch.common.server.framework.logging.AbstractJacksonLayout.Builder
Additional fields to set on each log event.- Overrides:
setAdditionalFields
in classorg.curioswitch.common.server.framework.logging.AbstractJacksonLayout.Builder<B extends StackdriverJsonLayout.Builder<B>>
- Returns:
- this builder
-
setObjectMessageAsJsonObject
public B setObjectMessageAsJsonObject(boolean objectMessageAsJsonObject)
-
setPropertiesAsList
public B setPropertiesAsList(boolean propertiesAsList)
-
-