public class RedactorPolicy extends Object implements org.apache.log4j.rewrite.RewritePolicy, org.apache.log4j.spi.OptionHandler
RewritePolicy implementation that applies the redaction
rules defined in the configuration of the RedactorPolicy in
the Log4j Properties configuration file.| Constructor and Description |
|---|
RedactorPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions()
Called after all options are passed in via setter methods
so that they can be acted on at one time.
|
org.apache.log4j.spi.LoggingEvent |
rewrite(org.apache.log4j.spi.LoggingEvent source)
Given a LoggingEvent, potentially modify it and return an altered copy.
|
void |
setMetrics(String metricsClassName)
Log4j configurator calls this method with the value found in the config file.
|
void |
setRefreshInterval(long interval)
Log4j configurator calls this method with the value found in the config file.
|
void |
setRules(String rules)
Log4j configurator calls this method with the value found in the config file.
|
void |
setTimeOut(int timeOut)
Log4j configurator calls this method with the value found in the config file.
|
public void setMetrics(String metricsClassName)
metricsClassName - The metrics class name that is being instantiated.public void setRules(String rules)
rules - The path to the rules file that is being set.public void setRefreshInterval(long interval)
interval - The refresh interval that is being set.public void setTimeOut(int timeOut)
timeOut - The time out that is being set.public void activateOptions()
activateOptions in interface org.apache.log4j.spi.OptionHandlerpublic org.apache.log4j.spi.LoggingEvent rewrite(org.apache.log4j.spi.LoggingEvent source)
rewrite in interface org.apache.log4j.rewrite.RewritePolicysource - LoggingEvent to examineCopyright © 2025 Confluent, Inc.. All rights reserved.