March 2005
Beginner to intermediate
1254 pages
104h 21m
English
Filter
This interface defines the method that a
class must implement if it wants to filter log messages for a
Logger or Handler class.
isLoggable( ) should return
true if the specified LogRecord
contains information that should be logged. It should return
false if the LogRecord should
be filtered out not appear in any destination log. Note that both
Logger and Handler provide
built-in filtering based on the severity level of the
LogRecord. This Filter
interface exists to provide a customized filtering capability.
public interface Filter { // Public Instance Methods boolean isLoggable(LogRecord record); }
Handler.setFilter( ), Logger.setFilter(
)
Handler.getFilter( ), Logger.getFilter(
)
Read now
Unlock full access