Filter


Filter java.util.logging

Java 1.4

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  );   } 

Passed To

Handler.setFilter( ) , Logger.setFilter( )

Returned By

Handler.getFilter( ) , Logger.getFilter( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net