Class LevelRangeFilter

  • All Implemented Interfaces:
    ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle

    public class LevelRangeFilter
    extends ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
    Filters events within the levels levelMin and levelMax, inclusive.

    Events with a level above levelMax (if specified) or a level below levelMin (if specified) will be denied. Events that pass these criteria will get a FilterReply.NEUTRAL result to allow the rest of the filter chain process the event.

    • Field Summary

      • Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

        context
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ch.qos.logback.core.spi.FilterReply decide​(ch.qos.logback.classic.spi.ILoggingEvent event)  
      ch.qos.logback.classic.Level getLevelMax()  
      ch.qos.logback.classic.Level getLevelMin()  
      void setLevelMax​(ch.qos.logback.classic.Level levelMax)  
      void setLevelMin​(ch.qos.logback.classic.Level levelMin)  
      void start()  
      • Methods inherited from class ch.qos.logback.core.filter.Filter

        getName, isStarted, setName, stop
      • Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase

        addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
    • Constructor Detail

      • LevelRangeFilter

        public LevelRangeFilter()
    • Method Detail

      • decide

        public ch.qos.logback.core.spi.FilterReply decide​(ch.qos.logback.classic.spi.ILoggingEvent event)
        Specified by:
        decide in class ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
      • getLevelMax

        public ch.qos.logback.classic.Level getLevelMax()
      • setLevelMax

        public void setLevelMax​(ch.qos.logback.classic.Level levelMax)
      • getLevelMin

        public ch.qos.logback.classic.Level getLevelMin()
      • setLevelMin

        public void setLevelMin​(ch.qos.logback.classic.Level levelMin)
      • start

        public void start()
        Specified by:
        start in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        start in class ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>