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

Package class diagram package LogCategoryFilter
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.utils.logging.LogCategoryFilter
All Implemented Interfaces:
Filter

public class LogCategoryFilter
extends Object
implements Filter

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

Author:
Jimmy

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(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(LogRecord record)
Specified by:
isLoggable in interface 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:


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.