View Javadoc

1   package ch.qos.logback.core.spi;
2   
3   
4   /**
5    *
6    * This enum represents the possible replies that a filtering component
7    * in logback can return. It is used by implementations of both 
8    * {@link ch.qos.logback.core.filter.Filter} and
9    * {@link ch.qos.logback.classic.turbo.TurboFilter} abstract classes.
10   * 
11   * Based on the order that the FilterReply values are declared,
12   * FilterReply.ACCEPT.compareTo(FilterReply.DENY) will return 
13   * a positive value.
14   *
15   * @author Sébastien Pennec
16   */
17  public enum FilterReply {
18    DENY,
19    NEUTRAL,
20    ACCEPT;
21  }