cz.cuni.amis.pogamut.base.utils.logging
Class LogCategoryFilter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogCategoryFilter
public LogCategoryFilter(LogCategory category)
LogCategoryFilter
public LogCategoryFilter(LogCategory[] categories)
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.