The filter admits three options LevelMin, LevelMax and AcceptOnMatch.
If the level of the {@link LoggingEvent} is not between Min and Max(inclusive), then {@link Filter#DENY} is returned.
If the Logging event level is within the specified range, then if AcceptOnMatch is true, {@link Filter#ACCEPT} is returned, and ifAcceptOnMatch is false, {@link Filter#NEUTRAL} is returned.
If LevelMin
w 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 {@link org.apache.log4j.AppenderSkeleton#setThreshold setThreshold} methodavailable to all
appenders extending {@link org.apache.log4j.AppenderSkeleton} for a more convenient way tofilter out events by level.
@author Simon Kitching
@author based on code by Ceki Gülcü
|
|
|
|