__construct($sampleRate) : \Zend\Log\Filter\Priority
Sample rate must be a float number between 0 and 1 included. If 0.5, only half of the values will be logged. If 0.1 only 1 among 10 values will be logged.
\Zend\Log\Exception\InvalidArgumentException |
---|
filter(array $event) : bool
array
event data
bool
Accepted ?$sampleRate : float