protected function shouldLog($level)
    {
        if ($this->levels === ['*'] || $this->levels === ['all']) {
            return true;
        }

        return in_array($level, $this->levels);
    }