java.util.logging
Interface 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.


Method Summary
 boolean isLoggable(LogRecord record)
          Determines whether a LogRecord should be published or discarded.
 

Method Detail

isLoggable

boolean isLoggable(LogRecord record)
Determines whether a LogRecord should be published or discarded.

Parameters:
record - the LogRecord to be inspected.
Returns:
true if the record should be published, false if it should be discarded.