Packagecom.daveoncode.logging.filters
Classpublic class CategoryFilter
InheritanceCategoryFilter Inheritance AbstractFilterDecorator

Filter applied to log's category

See also

com.daveoncode.logging.filters.AbstractFilterDecorator


Protected Properties
 PropertyDefined by
 Inheritedtarget : IFilter
A reference to a wrapped IFilter object
AbstractFilterDecorator
 Inheritedvalue : Object
Value against which the filter is applied
AbstractFilterDecorator
Public Methods
 MethodDefined by
  
CategoryFilter(target:IFilter, value:Object)
CategoryFilter
  
apply(record:LogRecord):Boolean
Check if LogRecord's category property is equal to the passed "value" argument
CategoryFilter
Public Constants
 ConstantDefined by
  LABEL : String = "Category"
[static] A descriptive label assigned to the filter
CategoryFilter
Constructor detail
CategoryFilter()constructor
public function CategoryFilter(target:IFilter, value:Object)

Parameters
target:IFilterA reference to a wrapped IFilter object
 
value:ObjectValue against which the filter is applied
Method detail
apply()method
public override function apply(record:LogRecord):Boolean

Check if LogRecord's category property is equal to the passed "value" argument

Parameters
record:LogRecordThe object to filter

Returns
Boolean — Boolean True if the LogRecord's category property is equal to the passed "value" argument false otherwise
Constant detail
LABELconstant
public static const LABEL:String = "Category"

A descriptive label assigned to the filter