public class MapRewritePolicy extends Object implements RewritePolicy
The combination of the RewriteAppender and this policy performs the same actions as the MapFilter from log4j 1.3.
Constructor and Description |
---|
MapRewritePolicy() |
Modifier and Type | Method and Description |
---|---|
LoggingEvent |
rewrite(LoggingEvent source)
Rewrite a logging event.
|
public MapRewritePolicy()
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.