Path

ez components / documentation / api reference / 2009.2.1 / eventlog


eZ Components 2009.2.1

EventLog: ezcLogFilterSet

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcLogFilterSet

Mapping of an eventType, eventSource and eventCategory to a mixed variable using a filter set. [source]

Implemented Interfaces

The ezcLogFilterSet is an implementation of the ezcLogMapper. The ezcLogFilterSet contains a set of ezcLogFilterRules. These rules are processed sequentially. The rule assigned first will be processed first. Each rule determines whether the log message matches with the filter rule. If the log message matches, it calls the writer and decide whether the filter set stops processing.

Method Summary

public void appendRule( $filter )
Appends a rule to the end of the filter set.
protected void clearCache( )
Clears the cache.
public bool deleteLastRule( )
Deletes the last rule from the filter set.
public mixed get( $severity, $source, $category )
Returns the variable assigned to the combination of a severity $severity, source $source, and category $category.

Methods

appendRule

void appendRule( ezcLogFilter $filter )
Appends a rule to the end of the filter set.

Parameters

Name Type Description
$filter ezcLogFilter  

clearCache

void clearCache( )
Clears the cache.

deleteLastRule

bool deleteLastRule( )
Deletes the last rule from the filter set.
Returns false if the filter set is empty, otherwise true.

get

mixed get( int $severity, string $source, string $category )
Returns the variable assigned to the combination of a severity $severity, source $source, and category $category.

Parameters

Name Type Description
$severity int  
$source string  
$category string  

Last updated: Tue, 23 Mar 2010