Package org.spf4j.log

Class UpToThresholdFilter

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

    public final class UpToThresholdFilter
    extends ch.qos.logback.core.filter.Filter<ch.qos.logback.classic.spi.ILoggingEvent>
    Filters events above the threshold level. Events with a level above the specified level will be denied, while events with a level equal or above the specified level will trigger a FilterReply.NEUTRAL result, to allow the rest of the filter chain process the event. For more information about filters, please refer to the online manual at http://logback.qos.ch/manual/filters.html#thresholdFilter
    • Field Summary

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

        context
    • Constructor Detail

      • UpToThresholdFilter

        public UpToThresholdFilter()
    • 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>
      • setLevel

        public void setLevel​(String level)
      • 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>