java.util.logging
Interface Filter
java.lang.Object
|
+--java.util.logging.Filter
public interface Filter
By implementing the 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.
Author:- Sascha Brawer (brawer@acm.org)
isLoggable
public boolean isLoggable(java.util.logging.LogRecord record)
Determines whether a LogRecord should be published or discarded.
Parameters:
Returns:
true
if the record should be published,
false
if it should be discarded.
Filter
interface, applications can control what is being logged based on arbitrary properties, not just the severity level. BothHandler
andLogger
allow to register Filters whoseisLoggable
method will be called when aLogRecord
has passed the test based on the severity level.