From a6e34d875b1fbcca76aefb42755444bc694a28a1 Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Sun, 26 Nov 2023 15:28:49 +0900 Subject: [PATCH] Add asctime to logging --- labelme/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelme/logger.py b/labelme/logger.py index dacd73a03..f0c173bc5 100644 --- a/labelme/logger.py +++ b/labelme/logger.py @@ -55,7 +55,7 @@ def colored(text): stream_handler = logging.StreamHandler(sys.stderr) handler_format = ColoredFormatter( - "[%(levelname2)s] %(module2)s:%(funcName2)s:%(lineno2)s - %(message2)s" + "%(asctime)s [%(levelname2)s] %(module2)s:%(funcName2)s:%(lineno2)s - %(message2)s" ) stream_handler.setFormatter(handler_format)