def __init__(self, level):
        """
        @param level: A log level.
        @type level: L{LogLevel}
        """
        super(InvalidLogLevelError, self).__init__(str(level))
        self.level = level

        @param level: A log level.
        @type level: L{LogLevel}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/logger/_levels.py