protected static class AmqpAppender.Builder extends Object implements org.apache.logging.log4j.core.util.Builder<AmqpAppender>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
public AmqpAppender.Builder setConfiguration(org.apache.logging.log4j.core.config.Configuration configuration)
public AmqpAppender.Builder setName(String name)
public AmqpAppender.Builder setLayout(org.apache.logging.log4j.core.Layout<? extends Serializable> layout)
public AmqpAppender.Builder setFilter(org.apache.logging.log4j.core.Filter filter)
public AmqpAppender.Builder setIgnoreExceptions(boolean ignoreExceptions)
public AmqpAppender.Builder setUri(URI uri)
public AmqpAppender.Builder setHost(String host)
public AmqpAppender.Builder setPort(String port)
public AmqpAppender.Builder setAddresses(String addresses)
public AmqpAppender.Builder setUser(String user)
public AmqpAppender.Builder setPassword(String password)
public AmqpAppender.Builder setVirtualHost(String virtualHost)
public AmqpAppender.Builder setUseSsl(boolean useSsl)
public AmqpAppender.Builder setVerifyHostname(boolean verifyHostname)
public AmqpAppender.Builder setSslAlgorithm(String sslAlgorithm)
public AmqpAppender.Builder setSslPropertiesLocation(String sslPropertiesLocation)
public AmqpAppender.Builder setKeyStore(String keyStore)
public AmqpAppender.Builder setKeyStorePassphrase(String keyStorePassphrase)
public AmqpAppender.Builder setKeyStoreType(String keyStoreType)
public AmqpAppender.Builder setTrustStore(String trustStore)
public AmqpAppender.Builder setTrustStorePassphrase(String trustStorePassphrase)
public AmqpAppender.Builder setTrustStoreType(String trustStoreType)
public AmqpAppender.Builder setSaslConfig(String saslConfig)
public AmqpAppender.Builder setSenderPoolSize(int senderPoolSize)
public AmqpAppender.Builder setMaxSenderRetries(int maxSenderRetries)
public AmqpAppender.Builder setApplicationId(String applicationId)
public AmqpAppender.Builder setRoutingKeyPattern(String routingKeyPattern)
public AmqpAppender.Builder setGenerateId(boolean generateId)
public AmqpAppender.Builder setDeliveryMode(String deliveryMode)
public AmqpAppender.Builder setExchange(String exchange)
public AmqpAppender.Builder setExchangeType(String exchangeType)
public AmqpAppender.Builder setDeclareExchange(boolean declareExchange)
public AmqpAppender.Builder setDurable(boolean durable)
public AmqpAppender.Builder setAutoDelete(boolean autoDelete)
public AmqpAppender.Builder setContentType(String contentType)
public AmqpAppender.Builder setContentEncoding(String contentEncoding)
public AmqpAppender.Builder setConnectionName(String connectionName)
public AmqpAppender.Builder setClientConnectionProperties(String clientConnectionProperties)
public AmqpAppender.Builder setAsync(boolean async)
public AmqpAppender.Builder setCharset(String charset)
public AmqpAppender.Builder setBufferSize(int bufferSize)
public AmqpAppender.Builder setBlockingQueueFactory(org.apache.logging.log4j.core.async.BlockingQueueFactory<AmqpAppender.Event> blockingQueueFactory)
public AmqpAppender.Builder setAddMdcAsHeaders(boolean addMdcAsHeaders)
public AmqpAppender build()
build
in interface org.apache.logging.log4j.core.util.Builder<AmqpAppender>
protected AmqpAppender buildInstance(String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, boolean ignoreExceptions, AmqpAppender.AmqpManager manager, BlockingQueue<AmqpAppender.Event> eventQueue)
name
- The Appender name.filter
- The Filter to associate with the Appender.layout
- The layout to use to format the event.ignoreExceptions
- If true, exceptions will be logged and suppressed. If false errors will be logged and
then passed to the application.manager
- Manager class for the appender.eventQueue
- Where LoggingEvents are queued to send.AmqpAppender