'Get the log level with the given name.
@param name: The name of a log level.
@type name: L{str} (native string)
@return: The L{LogLevel} with the specified C{name}.
@rtype: L{LogLevel}
@raise InvalidLogLevelError: if the C{name} does not name a valid log
level.'

@classmethod
def levelWithName(cls, name):

    try:
        return cls.lookupByName(name)
    except ValueError:
        raise InvalidLogLevelError(name)
