public abstract class AbstractAppenderFactory extends Object implements AppenderFactory
AppenderFactory.
Configuration Parameters:
| Name | Default | Description |
threshold |
ALL | The minimum event level the appender will handle. |
logFormat |
(none) | An appender-specific log format. |
bounded |
true | Whether or not the appender should block when its queue is full. |
batchSize |
128 | The maximum number of events to write in a single batch. |
batchDuration |
100ms | The maximum amount of time to wait for a full batch before writing a partial batch. |
| Modifier and Type | Field and Description |
|---|---|
protected String |
logFormat |
protected ch.qos.logback.classic.Level |
threshold |
| Constructor and Description |
|---|
AbstractAppenderFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addThresholdFilter(ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent> appender,
ch.qos.logback.classic.Level threshold) |
protected DropwizardLayout |
buildLayout(ch.qos.logback.classic.LoggerContext context,
TimeZone timeZone) |
io.dropwizard.util.Duration |
getBatchDuration() |
int |
getBatchSize() |
String |
getLogFormat() |
ch.qos.logback.classic.Level |
getThreshold() |
boolean |
isBounded() |
void |
setBatchDuration(io.dropwizard.util.Duration batchDuration) |
void |
setBatchSize(int batchSize) |
void |
setBounded(boolean bounded) |
void |
setLogFormat(String logFormat) |
void |
setThreshold(ch.qos.logback.classic.Level threshold) |
protected ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> |
wrapAsync(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild@NotNull protected ch.qos.logback.classic.Level threshold
protected String logFormat
public boolean isBounded()
public void setBounded(boolean bounded)
public int getBatchSize()
public void setBatchSize(int batchSize)
public io.dropwizard.util.Duration getBatchDuration()
public void setBatchDuration(io.dropwizard.util.Duration batchDuration)
public ch.qos.logback.classic.Level getThreshold()
public void setThreshold(ch.qos.logback.classic.Level threshold)
public String getLogFormat()
public void setLogFormat(String logFormat)
protected ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> wrapAsync(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender)
protected void addThresholdFilter(ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent> appender,
ch.qos.logback.classic.Level threshold)
protected DropwizardLayout buildLayout(ch.qos.logback.classic.LoggerContext context, TimeZone timeZone)
Copyright © 2014. All rights reserved.