Packagecom.daveoncode.logging.filters
Classpublic class LevelFilter
InheritanceLevelFilter Inheritance AbstractFilterDecorator

Filter applied to log's level (warning, info, error...)

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

Parameters
record:LogRecordThe object to filter

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

A descriptive label assigned to the filter