Class DefaultRewriteAuditAppender

  • All Implemented Interfaces:
    Direct Known Subclasses:
    SyslogRewriteAuditAppender, TestFileRewriteAuditAppender

    public abstract class DefaultRewriteAuditAppender
    extends DefaultAuditAppender
    Default (abstract) implementation of rewrite audit appender, allowing the logging event to be manipulated before it is processed. It provides rewrite appender definition and a default "pass-through" policy. It is bound to an empty collection of events, i.e. it does not create any logger. This class shall be extended by rewrite appenders; for non-rewrite, extend DefaultAuditAppender instead.
    See Also:
    • Field Detail

      • rewriteAppender

        protected org.apache.logging.log4j.core.appender.rewrite.RewriteAppender rewriteAppender
    • Constructor Detail

      • DefaultRewriteAuditAppender

        public DefaultRewriteAuditAppender​(String domain)
    • Method Detail

      • getRewritePolicy

        protected org.apache.logging.log4j.core.appender.rewrite.RewritePolicy getRewritePolicy()
      • getRewriteAppender

        public Optional<org.apache.logging.log4j.core.appender.rewrite.RewriteAppender> getRewriteAppender()