private static function logLineHasMinLevel($minLevel, $line)
    {
        if ($minLevel == 0) {
            return true;
        }

        return array_key_exists('level', $line) && static::getLevelNumber($line['level']) >= $minLevel;
    }