public final class RewriteAppender extends AbstractAppender
LOGGER| Modifier and Type | Method and Description |
|---|---|
void |
append(LogEvent event)
Modify the event and pass to the subordinate Appenders.
|
static RewriteAppender |
createAppender(String name,
String ignore,
AppenderRef[] appenderRefs,
Configuration config,
RewritePolicy rewritePolicy,
Filter filter)
Create a RewriteAppender.
|
void |
start()
Start the Appender.
|
void |
stop()
Stop the Appender.
|
error, error, error, getHandler, getLayout, getName, ignoreExceptions, isStarted, parseInt, setHandler, toStringaddFilter, getFilter, hasFilter, isFiltered, removeFilter, startFilter, stopFilterpublic void start()
AbstractAppenderstart in interface LifeCyclestart in class AbstractAppenderpublic void stop()
AbstractAppenderstop in interface LifeCyclestop in class AbstractAppenderpublic void append(LogEvent event)
event - The LogEvent.public static RewriteAppender createAppender(String name, String ignore, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter)
name - The name of the Appender.ignore - If "true" (default) exceptions encountered when appending events are logged; otherwise
they are propagated to the caller.appenderRefs - An array of Appender names to call.config - The Configuration.rewritePolicy - The policy to use to modify the event.filter - A Filter to filter events.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.