category Zend
package Zend_Log
subpackage Filter

 Methods

Filter logging by $priority.

__construct(int | array | \Traversable $priority, string $operator) : \Zend\Log\Filter\Priority

By default, it will accept any log event whose priority value is less than or equal to $priority.

Parameters

$priority

intarray\Traversable

Priority

$operator

string

Comparison operator

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

 

$operator

$operator : string

 

$priority

$priority : int