public interface Filter
Filter
interface, applications
can control what is being logged based on arbitrary properties,
not just the severity level. Both Handler
and
Logger
allow to register Filters whose
isLoggable
method will be called when a
LogRecord
has passed the test based on the
severity level.Modifier and Type | Method and Description |
---|---|
boolean |
isLoggable(LogRecord record)
Determines whether a LogRecord should be published or discarded.
|
boolean isLoggable(LogRecord record)
record
- the LogRecord
to be inspected.true
if the record should be published,
false
if it should be discarded.