[logger] hotfix, missing _FORMAT (#2231)

pull/2234/head
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
1 changed files with 1 additions and 1 deletions

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)