public final class LevelRangeFilter
extends java.lang.Object
implements java.util.logging.Filter
| Modifier and Type | Field and Description |
|---|---|
private int |
max |
private boolean |
maxInclusive |
private int |
min |
private boolean |
minInclusive |
| Constructor and Description |
|---|
LevelRangeFilter(java.util.logging.Level min,
boolean minInclusive,
java.util.logging.Level max,
boolean maxInclusive)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLoggable(java.util.logging.LogRecord record)
Determine if a record is loggable.
|
private final int min
private final int max
private final boolean minInclusive
private final boolean maxInclusive
public LevelRangeFilter(java.util.logging.Level min,
boolean minInclusive,
java.util.logging.Level max,
boolean maxInclusive)
min - the minimum (least severe) level, inclusiveminInclusive - true if the min value is inclusive, false if it is exclusivemax - the maximum (most severe) level, inclusivemaxInclusive - true if the max value is inclusive, false if it is exclusivepublic boolean isLoggable(java.util.logging.LogRecord record)
isLoggable in interface java.util.logging.Filterrecord - the log recordtrue if the record's level falls within the range specified for this instance