Package org.nuxeo.log4j
Class MaskSensitiveDataRewritePolicy
java.lang.Object
org.nuxeo.log4j.MaskSensitiveDataRewritePolicy
- All Implemented Interfaces:
org.apache.logging.log4j.core.appender.rewrite.RewritePolicy
@Plugin(name="MaskSensitiveData",
category="Core",
elementType="rewritePolicy")
public final class MaskSensitiveDataRewritePolicy
extends Object
implements org.apache.logging.log4j.core.appender.rewrite.RewritePolicy
- Since:
- 11.5
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
maskSensitive
(String msg) org.apache.logging.log4j.core.LogEvent
rewrite
(org.apache.logging.log4j.core.LogEvent source)
-
Field Details
-
redactor
-
-
Constructor Details
-
MaskSensitiveDataRewritePolicy
public MaskSensitiveDataRewritePolicy()
-
-
Method Details
-
rewrite
public org.apache.logging.log4j.core.LogEvent rewrite(org.apache.logging.log4j.core.LogEvent source) - Specified by:
rewrite
in interfaceorg.apache.logging.log4j.core.appender.rewrite.RewritePolicy
-
maskSensitive
-
createPolicy
-