public final class AsyncAppender extends AbstractAppender
LOGGER
Modifier and Type | Method and Description |
---|---|
void |
append(LogEvent event)
Actual writing occurs here.
|
static AsyncAppender |
createAppender(AppenderRef[] appenderRefs,
String errorRef,
String blocking,
String size,
String name,
String includeLocation,
Filter filter,
Configuration config,
String ignore)
Create an AsyncAppender.
|
void |
start()
Start the Appender.
|
void |
stop()
Stop the Appender.
|
error, error, error, getHandler, getLayout, getName, ignoreExceptions, isStarted, parseInt, setHandler, toString
addFilter, getFilter, hasFilter, isFiltered, removeFilter, startFilter, stopFilter
public void start()
AbstractAppender
start
in interface LifeCycle
start
in class AbstractAppender
public void stop()
AbstractAppender
stop
in interface LifeCycle
stop
in class AbstractAppender
public void append(LogEvent event)
event
- The LogEvent.public static AsyncAppender createAppender(AppenderRef[] appenderRefs, String errorRef, String blocking, String size, String name, String includeLocation, Filter filter, Configuration config, String ignore)
appenderRefs
- The Appenders to reference.errorRef
- An optional Appender to write to if the queue is full or other errors occur.blocking
- True if the Appender should wait when the queue is full. The default is true.size
- The size of the event queue. The default is 128.name
- The name of the Appender.includeLocation
- whether to include location information. The default is false.filter
- The Filter or null.config
- The Configuration.ignore
- If "true"
(default) exceptions encountered when appending events are logged; otherwise
they are propagated to the caller.Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.