From d1d027039a6de2c4828e06a7628330a693c91bd5 Mon Sep 17 00:00:00 2001 From: No767 <73260931+No767@users.noreply.github.com> Date: Tue, 2 Jan 2024 20:16:24 -0800 Subject: [PATCH] Fix logging not working for files --- bot/libs/utils/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/libs/utils/logger.py b/bot/libs/utils/logger.py index aa20cd1..310e6ca 100644 --- a/bot/libs/utils/logger.py +++ b/bot/libs/utils/logger.py @@ -11,7 +11,7 @@ class RodhajLogger: def __init__(self) -> None: self.self = self - self.log = logging.getLogger("zoee") + self.log = logging.getLogger("rodhaj") def __enter__(self) -> None: max_bytes = 32 * 1024 * 1024 # 32 MiB @@ -25,7 +25,7 @@ def __enter__(self) -> None: backupCount=5, ) fmt = logging.Formatter( - fmt="%(asctime)s %(levelname)s %(message)s", + fmt="%(asctime)s %(levelname)s\t%(message)s", datefmt="[%Y-%m-%d %H:%M:%S]", ) handler.setFormatter(fmt)