This commit is contained in:
jinql
2025-09-11 14:41:01 +08:00
parent a845b1053e
commit 96a975b9ad
3 changed files with 20 additions and 7 deletions

View File

@@ -24,12 +24,10 @@ forwarded_allow_ips = "*"
with open(Path(__file__).with_name("logging.yaml"), "r", encoding="utf-8") as f:
logconfig_dict = yaml.safe_load(f)
# 日志级别debug、info、warning、error、critical);以 YAML 配置优先
# 日志级别debug、info、warning、error以 YAML 配置优先
loglevel = "info"
# 访问日志文件("-" 表示输出到 stdout以 YAML 配置优先
accesslog = "logs/access.log"
# 错误日志文件;以 YAML 配置优先
errorlog = "-"