|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<LevelFilter.Type>
ch.javasoft.util.logging.LevelFilter.Type
public static enum LevelFilter.Type
The filter type, somewhat like a comparison operator for the threshold level and the log record's log level
| Enum Constant Summary | |
|---|---|
AtLeastAsSevere
Level of log record must be at least as severe as the threshold level. |
|
AtMostAsSevere
Level of log record must be at most as severe as the threshold level. |
|
LessSevere
Level of log record must be less severe than the threshold level. |
|
MoreSevere
Level of log record must be more severe than the threshold level. |
|
| Method Summary | |
|---|---|
abstract boolean |
isLoggable(LogRecord record,
Level threshold)
Performs the filtering, constant-specific implementation (see constant comments for details). |
static LevelFilter.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LevelFilter.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final LevelFilter.Type MoreSevere
Record level rec.level passes the filter if
rec.level.intValue() > threshold.intValue()
public static final LevelFilter.Type AtLeastAsSevere
Record level rec.level passes the filter if
rec.level.intValue() >= threshold.intValue()
public static final LevelFilter.Type AtMostAsSevere
Record level rec.level passes the filter if
rec.level.intValue() <= threshold.intValue()
public static final LevelFilter.Type LessSevere
Record level rec.level passes the filter if
rec.level.intValue() < threshold.intValue()
| Method Detail |
|---|
public static LevelFilter.Type[] values()
for (LevelFilter.Type c : LevelFilter.Type.values()) System.out.println(c);
public static LevelFilter.Type valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public abstract boolean isLoggable(LogRecord record,
Level threshold)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||