public final class FailoverAppender extends AbstractAppender
LOGGER
Modifier and Type | Method and Description |
---|---|
void |
append(LogEvent event)
Handle the Log event.
|
static FailoverAppender |
createAppender(String name,
String primary,
String[] failovers,
String retryIntervalString,
Configuration config,
Filter filter,
String ignore)
Create a Failover Appender.
|
void |
start()
Start the Appender.
|
String |
toString() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, isStarted, parseInt, setHandler, stop
addFilter, getFilter, hasFilter, isFiltered, removeFilter, startFilter, stopFilter
public void start()
AbstractAppender
start
in interface LifeCycle
start
in class AbstractAppender
public void append(LogEvent event)
event
- The LogEvent.public String toString()
toString
in class AbstractAppender
public static FailoverAppender createAppender(String name, String primary, String[] failovers, String retryIntervalString, Configuration config, Filter filter, String ignore)
name
- The name of the Appender (required).primary
- The name of the primary Appender (required).failovers
- The name of one or more Appenders to fail over to (at least one is required).retryIntervalString
- The retry intervalMillis.config
- The current Configuration (passed by the Configuration when the appender is created).filter
- A Filter (optional).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.