@Plugin(name="RedactorPolicy",
category="Core",
elementType="layout",
printObject=true)
public class RedactorPolicy
extends Object
implements org.apache.logging.log4j.core.appender.rewrite.RewritePolicy
RewritePolicy implementation that applies the redaction
rules defined in the configuration of the RedactorPolicy in
the Log4j Properties configuration file. Use with RewriteAppender.| Modifier and Type | Method and Description |
|---|---|
static RedactorPolicy |
createPolicy(String name,
String rules,
Long refreshInterval,
Integer timeOut,
LogRedactorMetrics metrics) |
org.apache.logging.log4j.core.LogEvent |
rewrite(org.apache.logging.log4j.core.LogEvent source)
Given a LoggingEvent, potentially modify it and return an altered copy.
|
@PluginFactory public static RedactorPolicy createPolicy(@PluginAttribute(value="name") String name, @PluginAttribute(value="rules") String rules, @PluginAttribute(value="refreshInterval") Long refreshInterval, @PluginAttribute(value="timeOut") Integer timeOut, @PluginElement(value="metrics") LogRedactorMetrics metrics)
public org.apache.logging.log4j.core.LogEvent rewrite(org.apache.logging.log4j.core.LogEvent source)
rewrite in interface org.apache.logging.log4j.core.appender.rewrite.RewritePolicysource - LoggingEvent to examineCopyright © 2025 Confluent, Inc.. All rights reserved.