private function mapLogLevel($severity)
    {
        if (!array_key_exists($severity, $this->logLevelMap)) {
            throw new \InvalidArgumentException('Severity is not mapped: ' . $severity);
        }

        return $this->logLevelMap[$severity];
    }