original_docstring: 
          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.
          
docstring: Get the log level with the given name.
docstring_tokens: Get the log level with the given name .
code: def levelWithName(cls, name):
          """
          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.
          """
          try:
              return cls.lookupByName(name)
          except ValueError:
              raise InvalidLogLevelError(name)
code_tokens: def levelWithName ( cls , name ) : try : return cls . lookupByName ( name ) except ValueError : raise InvalidLogLevelError ( name )
short_docstring: Get the log level with the given name.
short_docstring_tokens: Get the log level with the given name .
comment: """
          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.
          """