Include our custom lower log levels into python's logging.
This commit is contained in:
parent
6391970fad
commit
9a3bf35cdf
|
@ -141,6 +141,8 @@ def setupLogger(level="error", filename=None, filemode="w"):
|
||||||
|
|
||||||
if logging.getLoggerClass() is not Logging:
|
if logging.getLoggerClass() is not Logging:
|
||||||
logging.setLoggerClass(Logging)
|
logging.setLoggerClass(Logging)
|
||||||
|
logging.addLevelName(5, 'TRACE')
|
||||||
|
logging.addLevelName(1, 'GARBAGE')
|
||||||
|
|
||||||
level = levels.get(level, logging.ERROR)
|
level = levels.get(level, logging.ERROR)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue