src/Writer/AbstractWriter.php
protected function filter(LogInterface $log): bool
    {
        foreach ($this->getFilters() as $filter) {
            if ($filter->filter($log) === true) {
                return true;
            }
        }

        return false;
    }
protected function filter(LogInterface $log): bool
    {
        foreach ($this->getFilters() as $filter) {
            if ($filter->filter($log) === true) {
                return true;
            }
        }

        return false;
    }
Check if $log must be filtered.

@param LogInterface $log
@return bool