java.util.logging.Filterpublic final class LevelRangeFilter
extends java.lang.Object
implements java.util.logging.Filter
| Constructor | Description |
|---|---|
LevelRangeFilter(java.util.logging.Level min,
boolean minInclusive,
java.util.logging.Level max,
boolean maxInclusive) |
Create a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isLoggable(java.util.logging.LogRecord record) |
Determine if a record is loggable.
|
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 instanceCopyright © 2018. All rights reserved.