Class Rfc5424Layout.Rfc5424LayoutBuilder
java.lang.Object
org.apache.logging.log4j.core.layout.AbstractLayout.Builder<B>
org.apache.logging.log4j.core.layout.AbstractStringLayout.Builder<Rfc5424Layout.Rfc5424LayoutBuilder>
org.apache.logging.log4j.core.layout.Rfc5424Layout.Rfc5424LayoutBuilder
- All Implemented Interfaces:
Builder<Rfc5424Layout>
- Enclosing class:
- Rfc5424Layout
public static class Rfc5424Layout.Rfc5424LayoutBuilder
extends AbstractStringLayout.Builder<Rfc5424Layout.Rfc5424LayoutBuilder>
implements Builder<Rfc5424Layout>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.setAppName
(String appName) setCharset
(Charset charset) setConfig
(Configuration config) Deprecated.setEscapeNL
(String escapeNL) setEventPrefix
(String eventPrefix) setExceptionPattern
(String exceptionPattern) setExcludes
(String excludes) setFacility
(Facility facility) setIncludeMDC
(boolean includeMDC) setIncludeNL
(boolean includeNL) setIncludes
(String includes) setLoggerFields
(LoggerFields[] loggerFields) setMdcPrefix
(String mdcPrefix) setMessageId
(String messageId) setRequired
(String required) setUseTLSMessageFormat
(boolean useTLSMessageFormat) Methods inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout.Builder
getCharset, getFooterSerializer, getHeaderSerializer, 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
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
Rfc5424LayoutBuilder
public Rfc5424LayoutBuilder()
-
-
Method Details
-
setConfig
Deprecated.Since 2.24.0 useAbstractLayout.Builder.setConfiguration(org.apache.logging.log4j.core.config.Configuration)
instead. -
setFacility
-
setId
-
setEin
-
setIncludeMDC
-
setIncludeNL
-
setEscapeNL
-
setMdcId
-
setMdcPrefix
-
setEventPrefix
-
setAppName
-
setMessageId
-
setExcludes
-
setIncludes
-
setRequired
-
setCharset
- Overrides:
setCharset
in classAbstractStringLayout.Builder<Rfc5424Layout.Rfc5424LayoutBuilder>
-
setExceptionPattern
-
setUseTLSMessageFormat
-
setLoggerFields
-
build
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<Rfc5424Layout>
- Returns:
- the configured instance.
-
AbstractLayout.Builder.setConfiguration(org.apache.logging.log4j.core.config.Configuration)
instead.