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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the object after all configuration has been set.setAppName(String appName) setCharset(Charset charset) setConfig(Configuration config) Deprecated.setEnterpriseNumber(Integer enterpriseNumber) 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, setHeaderSerializerMethods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout.Builder
asBuilder, getConfiguration, getFooter, getHeader, setConfiguration, setFooter, setHeaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setCharsetin classAbstractStringLayout.Builder<Rfc5424Layout.Rfc5424LayoutBuilder>
-
setExceptionPattern
-
setUseTLSMessageFormat
-
setLoggerFields
-
setEnterpriseNumber
- Since:
- 2.25.0
-
build
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<Rfc5424Layout>- Returns:
- the configured instance.
-
AbstractLayout.Builder.setConfiguration(org.apache.logging.log4j.core.config.Configuration)instead.