1
0
mirror of https://github.com/hpcaitech/ColossalAI.git synced 2025-05-06 23:48:26 +00:00

[logger] hotfix, missing _FORMAT ()

This commit is contained in:
Super Daniel 2022-12-29 22:59:39 +08:00 committed by GitHub
parent 2cdecc9f38
commit 78483a9fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)