Class NullLevelFilterFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>

  • Type Parameters:
    E - The type of log event
    All Implemented Interfaces:
    LevelFilterFactory<E>

    public class NullLevelFilterFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
    extends Object
    implements LevelFilterFactory<E>
    Factory for building a logback Filter that will always defer to the next Filter.
    • Constructor Detail

      • NullLevelFilterFactory

        public NullLevelFilterFactory()
    • Method Detail

      • build

        public ch.qos.logback.core.filter.Filter<E> build​(ch.qos.logback.classic.Level threshold)
        Creates a Filter that will always defer to the next Filter in the chain, if any.
        Specified by:
        build in interface LevelFilterFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
        Parameters:
        threshold - the parameter is ignored
        Returns:
        a Filter with a Filter.decide(Object) method that will always return FilterReply.NEUTRAL.