优化日志

This commit is contained in:
Windpicker-owo
2025-11-26 21:16:16 +08:00
parent e0157256b1
commit 0908fb50a0
100 changed files with 493 additions and 574 deletions

View File

@@ -137,7 +137,7 @@ from src.common.logger import get_logger
logger = get_logger("module_name")
logger.info("信息")
logger.error("错误", exc_info=True) # 包含堆栈跟踪
logger.error("错误")
```
**日志级别**: 通过 `bot_config.toml``[logging]` 配置