public abstract class AbstractAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware> extends Object implements AppenderFactory<E>
AppenderFactory.
Configuration Parameters:
| Name | Default | Description |
threshold |
ALL | The minimum event level the appender will handle. |
logFormat |
(none) | An appender-specific log format. |
timeZone |
UTC |
The time zone to which event timestamps will be converted. Ignored if logFormat is supplied. |
queueSize |
AsyncAppenderBase |
The maximum capacity of the blocking queue. |
includeCallerData |
AsyncAppenderBase |
Whether to include caller data, required for line numbers. Beware, is considered expensive. |
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. |
filterFactories |
(none) |
A list of filters to apply to the appender, in order,
after the threshold.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
logFormat |
protected ch.qos.logback.classic.Level |
threshold |
protected TimeZone |
timeZone |
| Constructor and Description |
|---|
AbstractAppenderFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected ch.qos.logback.core.pattern.PatternLayoutBase<E> |
buildLayout(ch.qos.logback.classic.LoggerContext context,
LayoutFactory<E> layoutFactory) |
int |
getDiscardingThreshold() |
com.google.common.collect.ImmutableList<FilterFactory<E>> |
getFilterFactories() |
String |
getLogFormat() |
int |
getQueueSize() |
ch.qos.logback.classic.Level |
getThreshold() |
TimeZone |
getTimeZone() |
boolean |
isIncludeCallerData() |
void |
setDiscardingThreshold(int discardingThreshold) |
void |
setFilterFactories(List<FilterFactory<E>> appenders) |
void |
setIncludeCallerData(boolean includeCallerData) |
void |
setLogFormat(String logFormat) |
void |
setQueueSize(int queueSize) |
void |
setThreshold(ch.qos.logback.classic.Level threshold) |
void |
setTimeZone(TimeZone timeZone) |
protected ch.qos.logback.core.Appender<E> |
wrapAsync(ch.qos.logback.core.Appender<E> appender,
AsyncAppenderFactory<E> asyncAppenderFactory) |
protected ch.qos.logback.core.Appender<E> |
wrapAsync(ch.qos.logback.core.Appender<E> appender,
AsyncAppenderFactory<E> asyncAppenderFactory,
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
@NotNull protected TimeZone timeZone
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)
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public boolean isIncludeCallerData()
public void setIncludeCallerData(boolean includeCallerData)
public com.google.common.collect.ImmutableList<FilterFactory<E>> getFilterFactories()
public void setFilterFactories(List<FilterFactory<E>> appenders)
protected ch.qos.logback.core.Appender<E> wrapAsync(ch.qos.logback.core.Appender<E> appender, AsyncAppenderFactory<E> asyncAppenderFactory)
protected ch.qos.logback.core.Appender<E> wrapAsync(ch.qos.logback.core.Appender<E> appender, AsyncAppenderFactory<E> asyncAppenderFactory, ch.qos.logback.core.Context context)
protected ch.qos.logback.core.pattern.PatternLayoutBase<E> buildLayout(ch.qos.logback.classic.LoggerContext context, LayoutFactory<E> layoutFactory)
Copyright © 2016. All rights reserved.