public class RewritePolicyAdapter extends Object implements RewritePolicy
| Constructor and Description |
|---|
RewritePolicyAdapter(RewritePolicy policy)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RewritePolicy |
getPolicy() |
LogEvent |
rewrite(LogEvent source)
Rewrite a logging event.
|
public RewritePolicyAdapter(RewritePolicy policy)
public LogEvent rewrite(LogEvent source)
RewritePolicyrewrite in interface RewritePolicysource - a logging event that may be returned or
used to create a new logging event.public RewritePolicy getPolicy()
Copyright © 1999-2025 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.