java.lang.Objectorg.apache.log4j.spi.Filter
org.apache.log4j.varia.LevelRangeFilter
All Implemented Interfaces:
OptionHandler
The filter admits three options LevelMin, LevelMax and AcceptOnMatch.
If the level of the LoggingEvent is not between Min and Max (inclusive), then Filter#DENY is returned.
If the Logging event level is within the specified range, then if AcceptOnMatch is true, Filter#ACCEPT is returned, and if AcceptOnMatch is false, Filter#NEUTRAL is returned.
If LevelMinw is not defined, then there is no
minimum acceptable level (ie a level is never rejected for
being too "low"/unimportant). If LevelMax is not
defined, then there is no maximum acceptable level (ie a
level is never rejected for beeing too "high"/important).
Refer to the setThreshold method
available to all appenders extending org.apache.log4j.AppenderSkeleton for a more convenient way to
filter out events by level.
Simon - Kitchingbased - on code by Ceki Gülcü| Field Summary | ||
|---|---|---|
| boolean | acceptOnMatch | Do we return ACCEPT when a match occurs. Default is
false, so that later filters get run by default |
| Level | levelMin | |
| Level | levelMax | |
| Fields inherited from org.apache.log4j.spi.Filter: |
|---|
| next, DENY, NEUTRAL, ACCEPT |
| Method from org.apache.log4j.varia.LevelRangeFilter Summary: |
|---|
| decide, getAcceptOnMatch, getLevelMax, getLevelMin, setAcceptOnMatch, setLevelMax, setLevelMin |
| Methods from org.apache.log4j.spi.Filter: |
|---|
| activateOptions, decide, getNext, setNext |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.log4j.varia.LevelRangeFilter Detail: |
|---|
|
AcceptOnMatch option. |
LevelMax option. |
LevelMin option. |
AcceptOnMatch option. |
LevelMax option. |
LevelMin option. |