JBoss Log Manager 1.3.2.Final-redhat-1

org.jboss.logmanager.filters
Class LevelRangeFilter

java.lang.Object
  extended by org.jboss.logmanager.filters.LevelRangeFilter
All Implemented Interfaces:
Filter

public final class LevelRangeFilter
extends Object
implements Filter

Log only messages that fall within a level range.


Constructor Summary
LevelRangeFilter(Level min, boolean minInclusive, Level max, boolean maxInclusive)
          Create a new instance.
 
Method Summary
 boolean isLoggable(LogRecord record)
          Determine if a record is loggable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LevelRangeFilter

public LevelRangeFilter(Level min,
                        boolean minInclusive,
                        Level max,
                        boolean maxInclusive)
Create a new instance.

Parameters:
min - the minimum (least severe) level, inclusive
minInclusive - true if the min value is inclusive, false if it is exclusive
max - the maximum (most severe) level, inclusive
maxInclusive - true if the max value is inclusive, false if it is exclusive
Method Detail

isLoggable

public boolean isLoggable(LogRecord record)
Determine if a record is loggable.

Specified by:
isLoggable in interface Filter
Parameters:
record - the log record
Returns:
true if the record's level falls within the range specified for this instance

JBoss Log Manager 1.3.2.Final-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.