Constructor | Description |
---|---|
LevelFilter(Collection<Level> includedLevels) |
Construct a new instance.
|
LevelFilter(Level includedLevel) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isLoggable(LogRecord record) |
Determine whether the message is loggable.
|
public LevelFilter(Level includedLevel)
includedLevel
- the level to includepublic LevelFilter(Collection<Level> includedLevels)
includedLevels
- the levels to excludepublic boolean isLoggable(LogRecord record)
isLoggable
in interface Filter
record
- the log recordtrue
if the level is in the inclusion listCopyright © 2018. All rights reserved.