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

public final Class LevelRangeFilter

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

Log only messages that fall within a level range.

Field Summary

Modifier and TypeField and Description
private final int
private final boolean
private final int
private final boolean

Constructor Summary

AccessConstructor and Description
public
LevelRangeFilter(final Level
the minimum (least severe) level, inclusive
min
,
final boolean
true if the min value is inclusive, false if it is exclusive
minInclusive
,
final Level
the maximum (most severe) level, inclusive
max
,
final boolean
true if the max value is inclusive, false if it is exclusive
maxInclusive
)

Create a new instance.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the record's level falls within the range specified for this instance
isLoggable
(final LogRecord
the log record
record
)

Implements java.util.logging.Filter.isLoggable.

Determine if a record is loggable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maxback to summary
private final int max
maxInclusiveback to summary
private final boolean maxInclusive
minback to summary
private final int min
minInclusiveback to summary
private final boolean minInclusive

Constructor Detail

LevelRangeFilterback to summary
public LevelRangeFilter(final Level min, final boolean minInclusive, final Level max, final boolean maxInclusive)

Create a new instance.

Parameters
min:Level

the minimum (least severe) level, inclusive

minInclusive:boolean

true if the min value is inclusive, false if it is exclusive

max:Level

the maximum (most severe) level, inclusive

maxInclusive:boolean

true if the max value is inclusive, false if it is exclusive

Method Detail

isLoggableback to summary
public boolean isLoggable(final LogRecord record)

Implements java.util.logging.Filter.isLoggable.

Determine if a record is loggable.

Parameters
record:LogRecord

the log record

Returns:boolean

true if the record's level falls within the range specified for this instance