Package org.jboss.logmanager.filters
Class LevelRangeFilter
java.lang.Object
org.jboss.logmanager.filters.LevelRangeFilter
- All Implemented Interfaces:
Filter
Log only messages that fall within a level range.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final boolean
private final int
private final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionLevelRangeFilter
(Level min, boolean minInclusive, Level max, boolean maxInclusive) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isLoggable
(LogRecord record) Determine if a record is loggable.
-
Field Details
-
min
private final int min -
max
private final int max -
minInclusive
private final boolean minInclusive -
maxInclusive
private final boolean maxInclusive
-
-
Constructor Details
-
LevelRangeFilter
Create a new instance.- Parameters:
min
- the minimum (least severe) level, inclusiveminInclusive
-true
if themin
value is inclusive,false
if it is exclusivemax
- the maximum (most severe) level, inclusivemaxInclusive
-true
if themax
value is inclusive,false
if it is exclusive
-
-
Method Details
-
isLoggable
Determine if a record is loggable.- Specified by:
isLoggable
in interfaceFilter
- Parameters:
record
- the log record- Returns:
true
if the record's level falls within the range specified for this instance
-