mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-05-06 23:48:26 +00:00
[logger] hotfix, missing _FORMAT (#2231)
This commit is contained in:
parent
2cdecc9f38
commit
78483a9fdd
@ -124,7 +124,7 @@ class DistributedLogger:
|
||||
# add file handler
|
||||
file_handler = logging.FileHandler(path, mode)
|
||||
file_handler.setLevel(getattr(logging, level))
|
||||
formatter = logging.Formatter(_FORMAT)
|
||||
formatter = logging.Formatter('colossalai - %(name)s - %(levelname)s: %(message)s')
|
||||
file_handler.setFormatter(formatter)
|
||||
self._logger.addHandler(file_handler)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user