From 29eb135752d3a071c294ba99474e2cb8c4791d70 Mon Sep 17 00:00:00 2001 From: 283375 Date: Fri, 28 Jun 2024 22:24:57 +0800 Subject: [PATCH] log tag support --- index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.py b/index.py index f853d6e..0fd2b39 100644 --- a/index.py +++ b/index.py @@ -43,9 +43,9 @@ if __name__ == "__main__": hms = now.strftime("%H%M%S") rootLoggerFormatter = logging.Formatter( - "[%(asctime)s/%(levelname)s]%(name)s: %(message)s", + "[%(asctime)s/%(levelname)s] %(name)s (%(tag)s): %(message)s", "%m-%d %H:%M:%S", - style="%", + defaults={"tag": "/"}, ) rootLoggerFileHandler = logging.FileHandler( str(logFolder / f"arcaea-offline-pyside-ui-{ymd}-{hms}_debug.log"),