public static class SyslogAppender.Builder<B extends SyslogAppender.Builder<B>> extends SocketAppender.AbstractBuilder<B> implements Builder<SocketAppender>
Constructor and Description |
---|
Builder() |
getAdvertise, getConnectTimeoutMillis, getHost, getImmediateFail, getPort, getProtocol, getReconnectDelayMillis, getSocketOptions, getSslConfiguration, withAdvertise, withConnectTimeoutMillis, withHost, withImmediateFail, withPort, withProtocol, withReconnectDelayMillis, withSocketOptions, withSslConfiguration
getBufferSize, isBufferedIo, isImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlush
getConfiguration, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withName
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
public Builder()
public SyslogAppender build()
Builder
build
in interface Builder<SocketAppender>
public Facility getFacility()
public int getEnterpriseNumber()
public boolean isIncludeMdc()
public String getMdcPrefix()
public String getEventPrefix()
public boolean isNewLine()
public String getEscapeNL()
public String getAppName()
public String getExcludes()
public String getIncludes()
public String getRequired()
public Charset getCharsetName()
public String getExceptionPattern()
public LoggerFields[] getLoggerFields()
public B setFacility(Facility facility)
public B setEnterpriseNumber(int enterpriseNumber)
public B setIncludeMdc(boolean includeMdc)
public B setMdcPrefix(String mdcPrefix)
public B setEventPrefix(String eventPrefix)
public B setNewLine(boolean newLine)
public B setEscapeNL(String escapeNL)
public B setAppName(String appName)
public B setExcludes(String excludes)
public B setIncludes(String includes)
public B setRequired(String required)
public B setCharsetName(Charset charset)
public B setExceptionPattern(String exceptionPattern)
public B setLoggerFields(LoggerFields[] loggerFields)
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.