Class StackdriverJsonLayout.Builder<B extends 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
      • Methods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout.Builder

        asBuilder, getConfiguration, getFooter, getHeader, setConfiguration, setFooter, setHeader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • getAdditionalFields

        public org.apache.logging.log4j.core.util.KeyValuePair[] getAdditionalFields()
        Overrides:
        getAdditionalFields in class org.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 class org.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)