|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.log4j.rewrite.PropertyRewritePolicy
public class PropertyRewritePolicy
This policy rewrites events by adding a user-specified list of properties to the event. Existing properties are not modified. The combination of the RewriteAppender and this policy performs the same actions as the PropertyFilter from log4j 1.3.
| Constructor Summary | |
|---|---|
PropertyRewritePolicy()
|
|
| Method Summary | |
|---|---|
org.apache.log4j.spi.LoggingEvent |
rewrite(org.apache.log4j.spi.LoggingEvent source)
Rewrite a logging event. |
void |
setProperties(java.lang.String props)
Set a string representing the property name/value pairs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyRewritePolicy()
| Method Detail |
|---|
public void setProperties(java.lang.String props)
props - public org.apache.log4j.spi.LoggingEvent rewrite(org.apache.log4j.spi.LoggingEvent source)
rewrite in interface RewritePolicysource - a logging event that may be returned or
used to create a new logging event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||