public function getLevelValue($levelName)
    {
        if (!is_string($levelName)) {
            throw new \Plop\Exception('Invalid level name');
        }
        $key = array_search($levelName, $this->levelNames, true);
        return (int) $key; // false is silently converted to 0.
    }