public static function toLevelEx($value) {
		if ($value instanceof LoggerLevel) {
			return $value;
		}
		$level = LoggerLevel::toLevel($value);
		if ($level === null) {
			throw new LoggerException("Given value [" . var_export($value, true) . "] cannot be converted to a logger level.");
		}
		return $level;
	}
public static function toLevelEx($value) {
		if ($value instanceof LoggerLevel) {
			return $value;
		}
		$level = LoggerLevel::toLevel($value);
		if ($level === null) {
			throw new LoggerException("Given value [" . var_export($value, true) . "] cannot be converted to a logger level.");
		}
		return $level;
	}
public static function toLevelEx ( $ value ) { if ( $ value instanceof LoggerLevel ) { return $ value ; } $ level = LoggerLevel :: toLevel ( $ value ) ; if ( $ level === null ) { throw new LoggerException ( "Given value [" . var_export ( $ value , true ) . "] cannot be converted to a logger level." ) ; } return $ level ; }
Converts the value to a level. Throws an exception if not possible.
Converts the value to a level . Throws an exception if not possible .