@FunctionalInterface public interface Filter
每一个Logger和处理程序都有一个关联的过滤器它。记录器或汉德勒将调用isLoggable方法来检查指定的LogRecord是否已出版。如果isLoggable返回false,则丢弃LogRecord。
Modifier and Type | Method and Description |
---|---|
boolean |
isLoggable(LogRecord record)
检查一个给定的日志记录是否应该被发布。
|
boolean isLoggable(LogRecord record)
record
-日志
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.