Add critical to log handler
This commit is contained in:
parent
25fe6f36cc
commit
6508ade008
@ -22,6 +22,9 @@ class CertidudeLogger(object):
|
|||||||
def debug(self, msg, *args):
|
def debug(self, msg, *args):
|
||||||
self.pre_emit(msg, *args, level="Debug")
|
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):
|
def pre_emit(self, msg, *args, level):
|
||||||
record = LoggerObject()
|
record = LoggerObject()
|
||||||
record.msg = msg
|
record.msg = msg
|
||||||
|
Loading…
Reference in New Issue
Block a user