bugfix
This commit is contained in:
parent
7140863800
commit
428c6bf8d0
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user