Top Description Fields Constructors Methods
org.jboss.logmanager.filters

public final Class LevelFilter

extends Object
implements Filter
Class Inheritance
All Implemented Interfaces
java.util.logging.Filter
Imports
java.util.Collection, .Collections, .HashSet, .Set, java.util.logging.Filter, .Level, .LogRecord

A filter which excludes messages of a certain level or levels

Field Summary

Modifier and TypeField and Description
private final Set<Level>

Constructor Summary

AccessConstructor and Description
public
LevelFilter(final Level
the level to include
includedLevel
)

Construct a new instance.

public
LevelFilter(final Collection<Level>
the levels to exclude
includedLevels
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the level is in the inclusion list
isLoggable
(final LogRecord
the log record
record
)

Implements java.util.logging.Filter.isLoggable.

Determine whether the message is loggable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

includedLevelsback to summary
private final Set<Level> includedLevels

Constructor Detail

LevelFilterback to summary
public LevelFilter(final Level includedLevel)

Construct a new instance.

Parameters
includedLevel:Level

the level to include

LevelFilterback to summary
public LevelFilter(final Collection<Level> includedLevels)

Construct a new instance.

Parameters
includedLevels:Collection<Level>

the levels to exclude

Method Detail

isLoggableback to summary
public boolean isLoggable(final LogRecord record)

Implements java.util.logging.Filter.isLoggable.

Determine whether the message is loggable.

Parameters
record:LogRecord

the log record

Returns:boolean

true if the level is in the inclusion list