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

public final Class LevelChangingFilter

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

A filter which modifies the log record with a new level if the nested filter evaluates true for that record.

Field Summary

Modifier and TypeField and Description
private final Level

Constructor Summary

AccessConstructor and Description
public
LevelChangingFilter(final Level
the level to change to
newLevel
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true always
isLoggable
(final LogRecord
the record to inspect and possibly update
record
)

Implements java.util.logging.Filter.isLoggable.

Apply the filter to this log record.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

newLevelback to summary
private final Level newLevel

Constructor Detail

LevelChangingFilterback to summary
public LevelChangingFilter(final Level newLevel)

Construct a new instance.

Parameters
newLevel:Level

the level to change to

Method Detail

isLoggableback to summary
public boolean isLoggable(final LogRecord record)

Implements java.util.logging.Filter.isLoggable.

Apply the filter to this log record.

Parameters
record:LogRecord

the record to inspect and possibly update

Returns:boolean

true always