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. |
queueSize |
AsyncAppenderBase |
The maximum capacity of the blocking queue. |
discardingThreshold |
AsyncAppenderBase |
By default, when the blocking queue has 20% capacity remaining, it will drop events of level TRACE, DEBUG and INFO, keeping only events of level WARN and ERROR. To keep all events, set discardingThreshold to 0. |
| 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) |
int |
getDiscardingThreshold() |
String |
getLogFormat() |
int |
getQueueSize() |
ch.qos.logback.classic.Level |
getThreshold() |
void |
setDiscardingThreshold(int discardingThreshold) |
void |
setLogFormat(String logFormat) |
void |
setQueueSize(int queueSize) |
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) |
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,
ch.qos.logback.core.Context context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild@NotNull protected ch.qos.logback.classic.Level threshold
protected String logFormat
public int getQueueSize()
public void setQueueSize(int queueSize)
public int getDiscardingThreshold()
public void setDiscardingThreshold(int discardingThreshold)
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 ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> wrapAsync(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
ch.qos.logback.core.Context context)
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 © 2015. All rights reserved.