src/Logger.php
private function convertLevel($level)
    {
        # If this is one of the defined string log levels then return it's numeric value
        if (!array_key_exists($level, $this->levels)) {
            throw new InvalidArgumentException("Unknown log level: {$level}");
        }

        return $this->levels[$level];
    }
private function convertLevel($level)
    {
        # If this is one of the defined string log levels then return it's numeric value
        if (!array_key_exists($level, $this->levels)) {
            throw new InvalidArgumentException("Unknown log level: {$level}");
        }

        return $this->levels[$level];
    }
private function convertLevel ( $ level ) { # If this is one of the defined string log levels then return it's numeric value if ( ! array_key_exists ( $ level , $ this -> levels ) ) { throw new InvalidArgumentException ( "Unknown log level: {$level}" ) ; } return $ this -> levels [ $ level ] ; }
Get a numeric log level for the passed parameter.

@param string $level One of the LogLevel constants

@return int
Get a numeric log level for the passed parameter .