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 Details

    • redactor

      protected Redactor 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 interface org.apache.logging.log4j.core.appender.rewrite.RewritePolicy
    • maskSensitive

      protected String maskSensitive(String msg)
    • createPolicy

      @PluginFactory public static MaskSensitiveDataRewritePolicy createPolicy()