public class PropertyRewritePolicy extends Object implements RewritePolicy
The combination of the RewriteAppender and this policy performs the same actions as the PropertyFilter from log4j 1.3.
Constructor and Description |
---|
PropertyRewritePolicy() |
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
rewrite(LoggingEvent source)
Rewrite a logging event.
|
void |
setProperties(String properties)
Set a string representing the property name/value pairs.
|
public PropertyRewritePolicy()
public void setProperties(String properties)
Form:
propname1=propvalue1,propname2=propvalue2
properties
- The properties.public LoggingEvent rewrite(LoggingEvent source)
rewrite
in interface RewritePolicy
source
- a logging event that may be returned or
used to create a new logging event.Copyright © 1999-1969 The 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.