|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.util.logging.LevelFilter
public class LevelFilter
A filter for log messages based on the log level. Only log records above or below a certain level pass the filter.
| Nested Class Summary | |
|---|---|
static class |
LevelFilter.Type
The filter type, somewhat like a comparison operator for the threshold level and the log record's log level |
| Constructor Summary | |
|---|---|
LevelFilter()
Default constructor, reads filter type and threshold from logger config. |
|
LevelFilter(LevelFilter.Type filterType,
Level threshold)
Constructor with threshold and filter type. |
|
| Method Summary | |
|---|---|
boolean |
isLoggable(LogRecord record)
Returns true if the level of the log record is filterType than the threshold level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LevelFilter()
The config is expected to look like this:
public LevelFilter(LevelFilter.Type filterType,
Level threshold)
filterType - comparison operator for levelsthreshold - threshold for right hand side of comparison| Method Detail |
|---|
public boolean isLoggable(LogRecord record)
isLoggable in interface Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||