From ee5b2274c3022ac6d0fdeb46a35ec7184b380a4f Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 7 May 2025 10:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5debug=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.py b/main.py index 29c528c..bf30d77 100644 --- a/main.py +++ b/main.py @@ -26,6 +26,14 @@ logger.add( retention="7 days", encoding="utf-8" ) +# ERROR 日志(仅 ERROR 及以上) +logger.add( + f"wx_debug.log", + level="DEBUG", + rotation="10 MB", + retention="7 days", + encoding="utf-8" +) def main(chat_type: int):