public function getLevelName($level)
    {
        if (!is_int($level)) {
            throw new \Plop\Exception('Invalid level value');
        }
        if (!isset($this->levelNames[$level])) {
            return "Level $level";
        }
        return $this->levelNames[$level];
    }