|
||||||||||
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.EqualsLevelFilter
public class EqualsLevelFilter
A filter that matches an exact level.
Constructor Summary | |
---|---|
EqualsLevelFilter(String identifier)
Constructs a new filter to make exact matches of levels. |
|
EqualsLevelFilter(String identifier,
LogLevel desiredLevel)
Constructs a new filter to make exact matches of levels. |
Method Summary | |
---|---|
LogLevel |
getDesiredLevel()
Gets the desired level of this filter. |
boolean |
isSuitable(LogLevel level)
Verifies if a log level is suitable for a determined logger. |
void |
setDesiredLevel(LogLevel desiredLevel)
Sets the desired level 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 EqualsLevelFilter(String identifier)
LevelFilterConstants.DEFAULT_LEVEL
.
identifier
- The name of this filter.public EqualsLevelFilter(String identifier, LogLevel desiredLevel)
identifier
- The name of this filter.desiredLevel
- The desired level for this filter.Method Detail |
---|
public final LogLevel getDesiredLevel()
public final void setDesiredLevel(LogLevel desiredLevel)
desiredLevel
- The desired 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 |