java.lang.Object
org.jboss.logmanager.filters.LevelFilter
- All Implemented Interfaces:
Filter
A filter which excludes messages of a certain level or levels
-
Constructor Summary
ConstructorsConstructorDescriptionLevelFilter(Collection<Level> includedLevels) Construct a new instance.LevelFilter(Level includedLevel) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLoggable(LogRecord record) Determine whether the message is loggable.
-
Constructor Details
-
LevelFilter
Construct a new instance.- Parameters:
includedLevel- the level to include
-
LevelFilter
Construct a new instance.- Parameters:
includedLevels- the levels to exclude
-
-
Method Details
-
isLoggable
Determine whether the message is loggable.- Specified by:
isLoggablein interfaceFilter- Parameters:
record- the log record- Returns:
trueif the level is in the inclusion list
-