'We want log levels to have defined ordering - the order of definition -
but they aren\'t value constants (the only value is the name).  This is
arguably a bug in Twisted, so this is just a workaround for U{until
this is fixed in some way
<https://twistedmatrix.com/trac/ticket/6523>}.
@param level: A log level.
@type level: L{LogLevel}
@return: A numeric index indicating priority (lower is higher level).
@rtype: L{int}'

@classmethod
def _priorityForLevel(cls, level):

    return cls._levelPriorities[level]
