- java.lang.Object
-
- org.jboss.logmanager.filters.LevelRangeFilter
-
-
Constructor Summary
Constructors Constructor Description LevelRangeFilter(Level min, boolean minInclusive, Level max, boolean maxInclusive)Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLoggable(LogRecord record)Determine if a record is loggable.
-
-
-
Constructor Detail
-
LevelRangeFilter
public LevelRangeFilter(Level min, boolean minInclusive, Level max, boolean maxInclusive)
Create a new instance.- Parameters:
min- the minimum (least severe) level, inclusiveminInclusive-trueif theminvalue is inclusive,falseif it is exclusivemax- the maximum (most severe) level, inclusivemaxInclusive-trueif themaxvalue is inclusive,falseif it is exclusive
-
-
Method Detail
-
isLoggable
public boolean isLoggable(LogRecord record)
Determine if a record is loggable.- Specified by:
isLoggablein interfaceFilter- Parameters:
record- the log record- Returns:
trueif the record's level falls within the range specified for this instance
-
-