[logback-dev] svn commit: r1170 - logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/filter
noreply.seb at qos.ch
noreply.seb at qos.ch
Mon Jan 8 14:41:32 CET 2007
Author: seb
Date: Mon Jan 8 14:41:32 2007
New Revision: 1170
Modified:
logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/filter/ThresholdFilter.java
Log:
Modified return value
Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/filter/ThresholdFilter.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/filter/ThresholdFilter.java (original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/filter/ThresholdFilter.java Mon Jan 8 14:41:32 2007
@@ -8,9 +8,11 @@
/**
* A class that filters events depending on their level.
*
- * All events with a level equal or above the specified
- * level will be accepted, while all events with a level
- * under the specified level will be denied.
+ * All events with a level under or above the specified
+ * level will be denied, while all 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.
*
* @author Sébastien Pennec
*/
@@ -27,7 +29,7 @@
LoggingEvent event = (LoggingEvent)eventObject;
if (event.getLevel().isGreaterOrEqual(level)) {
- return FilterReply.ACCEPT;
+ return FilterReply.NEUTRAL;
} else {
return FilterReply.DENY;
}
More information about the logback-dev
mailing list