回复到之前版本

This commit is contained in:
wzy-warehouse
2026-06-20 17:13:52 +08:00
parent 66f0d18947
commit f1e85468c5
3 changed files with 78 additions and 47 deletions
+9 -1
View File
@@ -18,6 +18,14 @@ DBN_CONFIG_DIR = CONFIG_DIR / "dbn"
def get_logger(name: str = "algorithm"):
"""获取日志记录器(loguru 不可用时自动回退标准 logging)"""
"""
获取日志记录器的便捷函数
Args:
name: 日志名称
Returns:
logging.Logger 实例
"""
from app.utils.logger import LoggerManager
return LoggerManager.get_logger(name, str(LOG_DIR))