Methods

Filter out any log messages not matching the pattern

__construct(string | array | \Traversable $regex) : \Zend\Log\Filter\Regex

Parameters

$regex

stringarray\Traversable

Regular expression to test the log message

Exceptions

\Zend\Log\Exception\InvalidArgumentException

Returns

Returns TRUE to accept the message, FALSE to block it.

filter(array $event) : bool

Parameters

$event

array

event data

Returns

boolaccepted?

 Properties

 

Regex to match

$regex : string