cz.cuni.amis.pogamut.base.utils.logging
Class LogCategoryFilter

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.utils.logging.LogCategoryFilter
All Implemented Interfaces:
java.util.logging.Filter

public class LogCategoryFilter
extends java.lang.Object
implements java.util.logging.Filter

Simple filter for LogCategory - it is instantiated with the instance of the LogCategory (or array of them) which it should accept.


Constructor Summary
LogCategoryFilter(LogCategory category)
           
LogCategoryFilter(LogCategory[] categories)
           
 
Method Summary
 LogCategory[] getFilterCategories()
          Returns cathegories the filter is looking for (taking / allowing the log record to be published).
 boolean isLoggable(java.util.logging.LogRecord record)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogCategoryFilter

public LogCategoryFilter(LogCategory category)

LogCategoryFilter

public LogCategoryFilter(LogCategory[] categories)
Method Detail

isLoggable

public boolean isLoggable(java.util.logging.LogRecord record)
Specified by:
isLoggable in interface java.util.logging.Filter

getFilterCategories

public LogCategory[] getFilterCategories()
Returns cathegories the filter is looking for (taking / allowing the log record to be published).

This array is copy - altering it won't alter the filter.

Returns: