Add critical to log handler

This commit is contained in:
Marvin Martinson 2021-08-23 09:42:03 +00:00
parent 25fe6f36cc
commit 6508ade008
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ class CertidudeLogger(object):
def debug(self, msg, *args):
self.pre_emit(msg, *args, level="Debug")
def critical(self, msg, *args):
self.pre_emit(msg, *args, level="Critical")
def pre_emit(self, msg, *args, level):
record = LoggerObject()
record.msg = msg