@FunctionalInterface public interface Filter
Each Logger and each Handler can have a filter associated with it. The Logger or Handler will call the isLoggable method to check if a given LogRecord should be published. If isLoggable returns false, the LogRecord will be discarded.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
isLoggable(LogRecord record) |
Check if a given log record should be published.
|
boolean isLoggable(LogRecord record)
record - a LogRecord