This commit is contained in:
yumoqing 2024-11-23 13:40:54 +08:00
parent 7140863800
commit 428c6bf8d0

View File

@ -16,7 +16,7 @@ def my_function():
@SingletonDecorator
class MyLogger:
levels={
"client":7,
"clientinfo":7,
"info":6,
"debug":5,
"warning":4,
@ -65,10 +65,10 @@ class MyLogger:
self.logger.flush()
self.close_logger()
def client(message):
def clientinfo(message):
frame_info = inspect.currentframe()
logger = MyLogger('Test')
logger.log('client', message, frame_info)
logger.log('clientinfo', message, frame_info)
def info(message):
frame_info = inspect.currentframe()