Class AsyncAppenderBase<E>

java.lang.Object
Type Parameters:
E -
All Implemented Interfaces:
Appender<E>, AppenderAttachable<E>, ContextAware, FilterAttachable<E>, LifeCycle
Direct Known Subclasses:
AsyncAppender

public class AsyncAppenderBase<E> extends UnsynchronizedAppenderBase<E> implements AppenderAttachable<E>
This appender and derived classes, log events asynchronously. In order to avoid loss of logging events, this appender should be closed. It is the user's responsibility to close appenders, typically at the end of the application lifecycle.

This appender buffers events in a BlockingQueue. AsyncAppenderBase<E>.ch.qos.logback.core.AsyncAppenderBase.Worker thread created by this appender takes events from the head of the queue, and dispatches them to the single appender attached to this appender.

Please refer to the logback manual for further information about this appender.

Since:
1.0.4
Author:
Ceki Gülcü, Torsten Juergeleit