Packagecom.daveoncode.logging.filters
Classpublic class DateFilter
InheritanceDateFilter Inheritance AbstractFilterDecorator

Filter applied to log's date

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
  
DateFilter(target:IFilter, value:Object, dateFormat:String)
DateFilter
  
apply(record:LogRecord):Boolean
Check if LogRecord's date property is equal to the passed "value" argument
DateFilter
Public Constants
 ConstantDefined by
  LABEL : String = "Date"
[static] A descriptive label assigned to the filter
DateFilter
Constructor detail
DateFilter()constructor
public function DateFilter(target:IFilter, value:Object, dateFormat:String)

Parameters
target:IFilterA reference to a wrapped IFilter object
 
value:ObjectValue against which the filter is applied
 
dateFormat:StringA String representing a valid DateFormatter's formatString
Method detail
apply()method
public override function apply(record:LogRecord):Boolean

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

Parameters
record:LogRecordThe object to filter

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

A descriptive label assigned to the filter