17 lines
231 B
Python
17 lines
231 B
Python
#!/usr/bin/env python3
|
|
|
|
from enum import Enum
|
|
|
|
|
|
class DebugLevel(Enum):
|
|
DEACTIVE = 0
|
|
ERROR = 1
|
|
WARNING = 2
|
|
INFO = 3
|
|
|
|
def __int__(self):
|
|
return self.value
|
|
|
|
def __str__(self):
|
|
return self.name
|