From 78483a9fdd226db7516ec498acd764d44bece6c6 Mon Sep 17 00:00:00 2001 From: Super Daniel <78588128+super-dainiu@users.noreply.github.com> Date: Thu, 29 Dec 2022 22:59:39 +0800 Subject: [PATCH] [logger] hotfix, missing _FORMAT (#2231) --- colossalai/logging/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colossalai/logging/logger.py b/colossalai/logging/logger.py index 8d50ee418..af7b7de54 100644 --- a/colossalai/logging/logger.py +++ b/colossalai/logging/logger.py @@ -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)