This is a very simple filter based on string matching.
The filter admits two options $stringToMatch and $acceptOnMatch. If there is a match (using http://www.php.net/strpos between the value of the $stringToMatch option and the message of the LoggerLoggingEvent, then the decide() method returns LoggerFilter::ACCEPT if the AcceptOnMatch option value is true, if it is false then LoggerFilter::DENY is returned. If there is no match, LoggerFilter::NEUTRAL is returned.
An example for this filter:
The corresponding XML file:
Located in /filters/LoggerFilterStringMatch.php (line 48)
LoggerFilter | --LoggerFilterStringMatch
Inherited From LoggerFilter
LoggerFilter::activateOptions()
LoggerFilter::addNext()
LoggerFilter::decide()
LoggerFilter::getNext()
Inherited from LoggerFilter
LoggerFilter::ACCEPT
LoggerFilter::DENY
LoggerFilter::NEUTRAL
Documentation generated on Fri, 27 Nov 2009 07:44:49 +0100 by phpDocumentor 1.4.3