Class 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 Detail

    • Constructor Detail

      • MaskSensitiveDataRewritePolicy

        public MaskSensitiveDataRewritePolicy()
    • Method Detail

      • 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)