|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.appender.rewrite.PropertiesRewritePolicy
public final class PropertiesRewritePolicy
This policy modifies events by replacing or possibly adding keys and values to the MapMessage.
Field Summary | |
---|---|
protected static Logger |
LOGGER
Allow subclasses access to the status logger without creating another instance. |
Method Summary | |
---|---|
static PropertiesRewritePolicy |
createPolicy(Configuration config,
Property[] props)
The factory method to create the PropertiesRewritePolicy. |
LogEvent |
rewrite(LogEvent source)
Rewrite the event. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOGGER
Method Detail |
---|
public LogEvent rewrite(LogEvent source)
rewrite
in interface RewritePolicy
source
- a logging event that may be returned or
used to create a new logging event.
public String toString()
toString
in class Object
public static PropertiesRewritePolicy createPolicy(Configuration config, Property[] props)
config
- The Configuration.props
- key/value pairs for the new keys and values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |