Package org.jboss.logmanager.filters
Class LevelFilter
- java.lang.Object
-
- org.jboss.logmanager.filters.LevelFilter
-
- All Implemented Interfaces:
java.util.logging.Filter
public final class LevelFilter extends java.lang.Object implements java.util.logging.Filter
A filter which excludes messages of a certain level or levels
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.util.logging.Level>
includedLevels
-
Constructor Summary
Constructors Constructor Description LevelFilter(java.util.Collection<java.util.logging.Level> includedLevels)
Construct a new instance.LevelFilter(java.util.logging.Level includedLevel)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLoggable(java.util.logging.LogRecord record)
Determine whether the message is loggable.
-
-
-
Constructor Detail
-
LevelFilter
public LevelFilter(java.util.logging.Level includedLevel)
Construct a new instance.- Parameters:
includedLevel
- the level to include
-
LevelFilter
public LevelFilter(java.util.Collection<java.util.logging.Level> includedLevels)
Construct a new instance.- Parameters:
includedLevels
- the levels to exclude
-
-