@FunctionalInterface public interface Filter
每个记录器和每个处理程序都可以有一个与之关联的过滤器。 Logger或Handler将调用isLoggable方法来检查是否应发布给定的LogRecord。 如果isLoggable返回false,LogRecord将被丢弃。
Modifier and Type | Method and Description |
---|---|
boolean |
isLoggable(LogRecord record)
检查是否应发布给定的日志记录。
|
boolean isLoggable(LogRecord record)
record
- 一个LogRecord
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.