[logger] hotfix, missing _FORMAT (#2231)

pull/2234/head
Super Daniel 2 years ago committed by GitHub
parent 2cdecc9f38
commit 78483a9fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save