|
||||||||||
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<T>
org.apache.logging.log4j.core.appender.rewrite.RewriteAppender<T>
T
- The Layout
's Serializable
type.public final class RewriteAppender<T extends Serializable>
This Appender allows the logging event to be manipulated before it is processed by other Appenders.
Field Summary |
---|
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractAppender |
---|
LOGGER |
Method Summary | ||
---|---|---|
void |
append(LogEvent event)
Modify the event and pass to the subordinate Appenders. |
|
static
|
createAppender(String name,
String suppress,
AppenderRef[] appenderRefs,
Configuration config,
RewritePolicy rewritePolicy,
Filter filter)
Create a RewriteAppender. |
|
void |
start()
Start the Appender. |
|
void |
stop()
Stop the Appender. |
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender |
---|
error, error, error, getHandler, getLayout, getName, isExceptionSuppressed, isStarted, parseInt, 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<T extends Serializable>
public void stop()
AbstractAppender
stop
in interface LifeCycle
stop
in class AbstractAppender<T extends Serializable>
public void append(LogEvent event)
event
- The LogEvent.public static <S extends Serializable> RewriteAppender<S> createAppender(String name, String suppress, AppenderRef[] appenderRefs, Configuration config, RewritePolicy rewritePolicy, Filter filter)
S
- The Layout
's Serializable
type.name
- The name of the Appender.suppress
- If true, exceptions will be handled in the Appender.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 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.