public final class LevelFilter
extends java.lang.Object
implements java.util.logging.Filter
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.util.logging.Level> |
includedLevels |
Constructor and Description |
---|
LevelFilter(java.util.Collection<java.util.logging.Level> includedLevels)
Construct a new instance.
|
LevelFilter(java.util.logging.Level includedLevel)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isLoggable(java.util.logging.LogRecord record)
Determine whether the message is loggable.
|
public LevelFilter(java.util.logging.Level includedLevel)
includedLevel
- the level to includepublic LevelFilter(java.util.Collection<java.util.logging.Level> includedLevels)
includedLevels
- the levels to exclude