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, setAdvertise, setConnectTimeoutMillis, setHost, setImmediateFail, setPort, setProtocol, setReconnectDelayMillis, setSocketOptions, setSslConfiguration, withAdvertise, withConnectTimeoutMillis, withHost, withImmediateFail, withPort, withProtocol, withReconnectDelayMillis, withSocketOptions, withSslConfiguration
getBufferSize, isBufferedIo, isImmediateFlush, setBufferedIo, setBufferSize, setImmediateFlush, withBufferedIo, withBufferSize, withImmediateFlush
getConfiguration, getErrorPrefix, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withName
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPrefix, isValid
public SyslogAppender build()
Builder
build
in interface Builder<SocketAppender>
public Facility getFacility()
public String getId()
public String getEnterpriseNumber()
public boolean isIncludeMdc()
public String getMdcId()
public String getMdcPrefix()
public String getEventPrefix()
public boolean isNewLine()
public String getEscapeNL()
public String getAppName()
public String getMsgId()
public String getExcludes()
public String getIncludes()
public String getRequired()
public String getFormat()
public Charset getCharsetName()
public String getExceptionPattern()
public LoggerFields[] getLoggerFields()
public B setEnterpriseNumber(int enterpriseNumber)
setEnterpriseNumber(String)
insteadpublic B setIncludeMdc(boolean includeMdc)
public B setNewLine(boolean newLine)
public B setLoggerFields(LoggerFields[] loggerFields)
Copyright © 1999-2023 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.