1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-11 23:06:58 +08:00

Update workflow logging

This commit is contained in:
Jactus
2021-04-16 15:35:11 +08:00
parent f4bfe8e619
commit 4ebf684794
6 changed files with 12 additions and 12 deletions

View File

@@ -17,9 +17,9 @@ class MetaLogger(type):
super().__init__(name, bases, dic)
def __new__(cls, name, bases, dict):
wrapper_dict = type(logging.getLogger("module_name")).__dict__.copy()
wrapper_dict = type(logging.getLogger("MetaLogger")).__dict__.copy()
wrapper_dict.update(dict)
wrapper_dict["__doc__"] = logging.getLogger("module_name").__doc__
wrapper_dict["__doc__"] = logging.getLogger("MetaLogger").__doc__
return type.__new__(cls, name, bases, wrapper_dict)
def __call__(cls, *args, **kwargs):