|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.acelogger.level.filter.BaseLevelFilter net.sourceforge.acelogger.level.filter.RangedLevelFilter
public class RangedLevelFilter
A filter that matches levels greater or equal the supplied one.
Constructor Summary | |
---|---|
RangedLevelFilter(String identifier)
Constructs a new filter that matches levels greater or equal the supplied one. |
|
RangedLevelFilter(String identifier,
LogLevel minimumLevel,
LogLevel maximumLevel)
Constructs a new filter that matches levels greater or equal the supplied one. |
Method Summary | |
---|---|
LogLevel |
getMaximumLevel()
Gets the maximum level of this filter. |
LogLevel |
getMinimumLevel()
Gets the minimum level of this filter. |
boolean |
isSuitable(LogLevel level)
Verifies if a log level is suitable for a determined logger. |
void |
setLevelRange(LogLevel minimumLevel,
LogLevel maximumLevel)
Sets the range of this filter. |
Methods inherited from class net.sourceforge.acelogger.level.filter.BaseLevelFilter |
---|
getIdentifier |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangedLevelFilter(String identifier)
LevelFilterConstants.DEFAULT_LEVEL
.
identifier
- The name of this filter.public RangedLevelFilter(String identifier, LogLevel minimumLevel, LogLevel maximumLevel)
identifier
- The name of this filter.minimumLevel
- The minimum level for this filter.maximumLevel
- The maximum level for this filter.Method Detail |
---|
public final LogLevel getMinimumLevel()
public final LogLevel getMaximumLevel()
public final void setLevelRange(LogLevel minimumLevel, LogLevel maximumLevel)
minimumLevel
- The minimum level to set.maximumLevel
- The maximum level to set.public boolean isSuitable(LogLevel level)
level
- The log level to test.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |