-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
32 lines (26 loc) · 885 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
# logging levels for presentation
#logging.addLevelName(logging.INFO, 'INFO')
for i in range(4):
i += 1
logging.addLevelName(logging.INFO+i, 'INFO:{}'.format(i))
logging.addLevelName(logging.INFO+5, 'OK')
for i in range(4):
i += 1
logging.addLevelName(logging.INFO+5+i, '-OK-:{}'.format(i))
#logging.addLevelName(logging.WARNING, 'WARNING')
for i in range(4):
i += 1
logging.addLevelName(logging.WARNING+i, 'WARN:{}'.format(i))
logging.addLevelName(logging.WARNING+5, 'CRIT')
for i in range(4):
i += 1
logging.addLevelName(logging.WARNING+5+i, 'CRIT:{}'.format(i))
#logging.addLevelName(logging.ERROR, 'ERROR')
for i in range(4):
i += 1
logging.addLevelName(logging.ERROR+i, 'ERR!:{}'.format(i))
# import mdiocre modules
from .core import MDiocre, VariableManager
from .wizard import Wizard