public static function getLevelCode(
        /*# string */ $level
    )/*# : int */ {
        if (is_string($level) &&
            isset(self::$levels[$level])) {
            return self::$levels[$level];
        }

        throw new Exception\InvalidArgumentException(
            Message::get(
                Message::INVALID_LOG_LEVEL,
                (string) $level
            ),
            Message::INVALID_LOG_LEVEL
        );
    }
public static function getLevelCode(
        /*# string */ $level
    )/*# : int */ {
        if (is_string($level) &&
            isset(self::$levels[$level])) {
            return self::$levels[$level];
        }

        throw new Exception\InvalidArgumentException(
            Message::get(
                Message::INVALID_LOG_LEVEL,
                (string) $level
            ),
            Message::INVALID_LOG_LEVEL
        );
    }
public static function getLevelCode ( /*# string */ $ level ) /*# : int */ { if ( is_string ( $ level ) && isset ( self :: $ levels [ $ level ] ) ) { return self :: $ levels [ $ level ] ; } throw new Exception \ InvalidArgumentException ( Message :: get ( Message :: INVALID_LOG_LEVEL , ( string ) $ level ) , Message :: INVALID_LOG_LEVEL ) ; }
Get level code by name

@param  string $level level name
@return int
@access public
@throws Exception\InvalidArgumentException
if $throwException and not the right level name
@static
@api
Get level code by name