Class CaptureLogs7.CaptureLogs7Appender

  • All Implemented Interfaces:
    org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler
    Enclosing class:
    CaptureLogs7

    public static class CaptureLogs7.CaptureLogs7Appender
    extends org.apache.log4j.AppenderSkeleton
    The new appender that will log the messages if we’re tracking them and also pass them on to the original logger if we’re higher than the original level.
    • Field Summary

      • Fields inherited from class org.apache.log4j.AppenderSkeleton

        closed, errorHandler, headFilter, layout, name, tailFilter, threshold
    • Constructor Summary

      Constructors 
      Constructor Description
      CaptureLogs7Appender​(org.apache.log4j.Level level, List<org.apache.log4j.Appender> appenders)  
    • Constructor Detail

      • CaptureLogs7Appender

        public CaptureLogs7Appender​(org.apache.log4j.Level level,
                                    List<org.apache.log4j.Appender> appenders)
    • Method Detail

      • append

        protected void append​(org.apache.log4j.spi.LoggingEvent event)
        Specified by:
        append in class org.apache.log4j.AppenderSkeleton
      • close

        public void close()
      • isAsSevereAsThreshold

        public boolean isAsSevereAsThreshold​(org.apache.log4j.Priority priority)
        Overrides:
        isAsSevereAsThreshold in class org.apache.log4j.AppenderSkeleton