1
0

logging: '-V' cli option can blacklist/whitelist classes with short names

for example, '-V ni' will whitelist the 'Network' and 'Interface' classes
'-V ^ni' will blacklist those instead
This commit is contained in:
SomberNight
2019-05-07 21:07:18 +02:00
parent 92260a798a
commit 104b8804f7
7 changed files with 95 additions and 7 deletions

View File

@@ -224,6 +224,8 @@ class Network(Logger):
servers, each connected socket is handled by an Interface() object.
"""
LOGGING_SHORTCUT = 'n'
def __init__(self, config: SimpleConfig=None):
global INSTANCE
INSTANCE = self