Class LoggerStringMatchFilter

Description

This is a very simple filter based on string matching.

This is a very simple filter based on string matching. The filter admits two options $stringToMatch and $acceptOnMatch. If there is a match between the value of the StringToMatch option and the message of the LoggerLoggingEvent, then the decide() method returns LOGGER_FILTER_ACCEPT if the AcceptOnMatch option value is true, if it is false then LOGGER_FILTER_DENY is returned. If there is no match, LOGGER_FILTER_NEUTRAL is returned.

Located in Program_Root/src/log4php/varia/LoggerStringMatchFilter.php (line 35)

LoggerFilter
   |
   --LoggerStringMatchFilter
Variable Summary
Method Summary
void decide (mixed $event)
void setAcceptOnMatch (mixed $acceptOnMatch)
void setStringToMatch (mixed $s)
Variables
mixed $acceptOnMatch = true (line 37)
mixed $stringToMatch = null (line 38)

Inherited Variables

Inherited from LoggerFilter

LoggerFilter::$next
Methods
decide (line 63)

Returns LOGGER_FILTER_NEUTRAL is there is no string match.

Returns LOGGER_FILTER_NEUTRAL is there is no string match.

void decide (mixed $event)

Redefinition of:
LoggerFilter::decide()
If the decision is LOGGER_FILTER_DENY, then the event will be dropped. filter, if any, will be invoked. the event will be logged without consulting with other filters in the chain.
getAcceptOnMatch (line 55)
void getAcceptOnMatch ()
getStringToMatch (line 45)
void getStringToMatch ()
setAcceptOnMatch (line 50)
void setAcceptOnMatch (mixed $acceptOnMatch)
setStringToMatch (line 40)
void setStringToMatch (mixed $s)

Inherited Methods

Inherited From LoggerFilter

LoggerFilter::activateOptions()
LoggerFilter::decide()

Documentation generated on Wed, 27 Aug 2003 18:11:52 +0200 by phpDocumentor 1.2.2