Class SyslogAppender.Builder<B extends SyslogAppender.Builder<B>>
java.lang.Object
org.apache.logging.log4j.core.filter.AbstractFilterable.Builder<B>
org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B>
org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.Builder<B>
org.apache.logging.log4j.core.appender.SocketAppender.AbstractBuilder<B>
org.apache.logging.log4j.core.appender.SyslogAppender.Builder<B>
- All Implemented Interfaces:
Builder<SocketAppender>
- Enclosing class:
- SyslogAppender
public static class SyslogAppender.Builder<B extends SyslogAppender.Builder<B>>
extends SocketAppender.AbstractBuilder<B>
implements Builder<SocketAppender>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.getId()
getMdcId()
getMsgId()
boolean
boolean
setAppName
(String appName) setCharsetName
(Charset charset) setEnterpriseNumber
(int enterpriseNumber) Deprecated.setEnterpriseNumber
(String enterpriseNumber) setEscapeNL
(String escapeNL) setEventPrefix
(String eventPrefix) setExceptionPattern
(String exceptionPattern) setExcludes
(String excludes) setFacility
(Facility facility) setIncludeMdc
(boolean includeMdc) setIncludes
(String includes) setLoggerFields
(LoggerFields[] loggerFields) setMdcPrefix
(String mdcPrefix) setNewLine
(boolean newLine) setRequired
(String required) Methods inherited from class org.apache.logging.log4j.core.appender.SocketAppender.AbstractBuilder
getAdvertise, getConnectTimeoutMillis, getHost, getImmediateFail, getPort, getProtocol, getReconnectDelayMillis, getSocketOptions, getSslConfiguration, setAdvertise, setConnectTimeoutMillis, setHost, setImmediateFail, setPort, setProtocol, setReconnectDelayMillis, setSocketOptions, setSslConfiguration, withAdvertise, withConnectTimeoutMillis, withHost, withImmediateFail, withPort, withProtocol, withReconnectDelayMillis, withSocketOptions, withSslConfiguration
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.Builder
getBufferSize, isBufferedIo, isImmediateFlush, setBufferedIo, setBufferSize, setImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlush
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender.Builder
getConfiguration, getErrorPrefix, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withName
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable.Builder
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
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
-
Builder
public Builder()
-
-
Method Details
-
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<B extends SyslogAppender.Builder<B>>
- Returns:
- the configured instance.
-
getFacility
-
getId
-
getEnterpriseNumber
-
isIncludeMdc
public boolean isIncludeMdc() -
getMdcId
-
getMdcPrefix
-
getEventPrefix
-
isNewLine
public boolean isNewLine() -
getEscapeNL
-
getAppName
-
getMsgId
-
getExcludes
-
getIncludes
-
getRequired
-
getFormat
-
getCharsetName
-
getExceptionPattern
-
getLoggerFields
-
setFacility
-
setId
-
setEnterpriseNumber
-
setEnterpriseNumber
Deprecated.UsesetEnterpriseNumber(String)
instead -
setIncludeMdc
-
setMdcId
-
setMdcPrefix
-
setEventPrefix
-
setNewLine
-
setEscapeNL
-
setAppName
-
setMsgId
-
setExcludes
-
setIncludes
-
setRequired
-
setFormat
-
setCharsetName
-
setExceptionPattern
-
setLoggerFields
-
setEnterpriseNumber(String)
instead