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)
LoggerConfigurable | --LoggerFilter | --LoggerFilterStringMatch
Inherited from LoggerFilter
LoggerFilter::$next
Inherited From LoggerFilter
LoggerFilter::activateOptions()
LoggerFilter::addNext()
LoggerFilter::decide()
LoggerFilter::getNext()
Inherited From LoggerConfigurable
LoggerConfigurable::setBoolean()
LoggerConfigurable::setFileSize()
LoggerConfigurable::setInteger()
LoggerConfigurable::setLevel()
LoggerConfigurable::setNumeric()
LoggerConfigurable::setPositiveInteger()
LoggerConfigurable::setString()
LoggerConfigurable::warn()
Inherited from LoggerFilter
LoggerFilter::ACCEPT
LoggerFilter::DENY
LoggerFilter::NEUTRAL
Documentation generated on Sat, 18 Feb 2012 22:32:24 +0000 by phpDocumentor 1.4.3