public FilterReply decide()

in src/main/java/com/spotify/logging/logback/LevelRangeFilter.java [58:72]


  public FilterReply decide(final ILoggingEvent event) {
    if (!isStarted()) {
      return FilterReply.NEUTRAL;
    }

    if (levelMin != null && event.getLevel().levelInt < levelMin.levelInt) {
      return FilterReply.DENY;
    }

    if (levelMax != null && event.getLevel().levelInt > levelMax.levelInt) {
      return FilterReply.DENY;
    }

    return FilterReply.NEUTRAL;
  }