⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 

Class AsyncAppender

java.lang.Object
|
+--org.apache.log4j.AppenderSkeleton
   |
   +--org.apache.log4j.AsyncAppender

All Implemented Interfaces:
Appender, AppenderAttachable, OptionHandler


class AsyncAppender
extends AppenderSkeleton
implements AppenderAttachable

The AsyncAppender lets users log events asynchronously. It uses a bounded buffer to store logging events.

The AsyncAppender will collect the events sent to it and then dispatch them to all the appenders that are attached to it. You can attach multiple appenders to an AsyncAppender.

The AsyncAppender uses a separate thread to serve the events in its bounded buffer.

Refer to the results in org.apache.log4j.performance.Logging for the impact of using this appender.

Important note: The AsyncAppender can only be script configured using the org.apache.log4j.xml.DOMConfigurator.

Author:
Ceki G