This commit is contained in:
2025-09-25 08:14:39 +08:00
parent d20c446e0e
commit 6774d1460b
2 changed files with 13 additions and 9 deletions
+11
View File
@@ -0,0 +1,11 @@
import logging
# 配置日志
handlers = [logging.FileHandler('log\query_processor.log'), logging.StreamHandler()]
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s',
handlers=handlers
)
logger = logging.getLogger(__name__)