org.jcoderz.commons.logging
Class CategoryFilter
java.lang.Object
org.jcoderz.commons.logging.CategoryFilter
- All Implemented Interfaces:
- Filter
public class CategoryFilter
- extends Object
- implements Filter
This filter is used for filtering log messages according to the category.
|
Constructor Summary |
CategoryFilter(List categories)
Creates a new instance of this and sets the categories, which will
pass this filter. |
|
Method Summary |
boolean |
isPassable(LogItem entry)
Returns flag whether the filter lets the log file entry pass, i.e. the
entry matches the filter criteria. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CategoryFilter
public CategoryFilter(List categories)
- Creates a new instance of this and sets the categories, which will
pass this filter. All categories within the supplied list must be
given in their textual representation.
- Parameters:
categories - The list storing passable categories in their
textual representation.
isPassable
public boolean isPassable(LogItem entry)
- Returns flag whether the filter lets the log file entry pass, i.e. the
entry matches the filter criteria.
- Specified by:
isPassable in interface Filter
- Parameters:
entry - The entry to check.
- Returns:
- true, if
entry passes the filter; false, else.
Copyright 2007 The jCoderZ Project.