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