|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.filter.AbstractFilterable
org.apache.logging.log4j.core.appender.AbstractAppender
org.apache.logging.log4j.core.appender.AsynchAppender
public final class AsynchAppender
Appender to write to one or more Appenders asynchronously. The AsynchAppender can be configrued with one or more Appenders and an Appender to write to if the queue is full. The AsynchAppender does not allow filter to be specified on the Appender references.
Field Summary |
---|
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractAppender |
---|
LOGGER |
Method Summary | |
---|---|
void |
append(LogEvent event)
Actual writing occurs here. |
static AsynchAppender |
createAppender(AppenderRef[] appenderRefs,
String errorRef,
String blocking,
String size,
String name,
Filter filter,
Configuration config,
String suppress)
Create an AsynchAppender. |
void |
start()
Start the Appender. |
void |
stop()
Stop the Appender. |
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender |
---|
close, error, error, error, getHandler, getLayout, getName, isExceptionSuppressed, isStarted, setHandler, toString |
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable |
---|
addFilter, getFilter, hasFilter, isFiltered, removeFilter, startFilter, stopFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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 AsynchAppender createAppender(AppenderRef[] appenderRefs, String errorRef, String blocking, String size, String name, Filter filter, Configuration config, String suppress)
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.filter
- The Filter or null.config
- The Configuration.suppress
- "true" if exceptions should be hidden from the application, "false" otherwise.
The default is "true".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |