From 627371d0ffdf50239313f2c86d022a0c5c69550d Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 21 四月 2026 19:43:46 +0800
Subject: [PATCH] refactor(logging): 重构日志记录模块,统一使用Serilog和QuartzLogHelper
---
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json
index caf766d..6468d80 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json
@@ -5,19 +5,20 @@
"Default": "Information",
"Override": {
"Microsoft": "Information",
- "Microsoft.AspNetCore": "Warning",
- "Microsoft.AspNetCore.Routing": "Warning",
- "Microsoft.AspNetCore.Mvc": "Warning",
- "Microsoft.AspNetCore.Mvc.Infrastructure": "Warning",
- "Microsoft.AspNetCore.Mvc.Filters": "Warning",
- "Microsoft.AspNetCore.Mvc.ModelBinding": "Warning",
- "Microsoft.EntityFrameworkCore": "Warning"
+ "Microsoft.AspNetCore": "Information",
+ "Microsoft.AspNetCore.Routing": "Information",
+ "Microsoft.AspNetCore.Mvc": "Information",
+ "Microsoft.AspNetCore.Mvc.Infrastructure": "Information",
+ "Microsoft.AspNetCore.Mvc.Filters": "Information",
+ "Microsoft.AspNetCore.Mvc.ModelBinding": "Information",
+ "Microsoft.EntityFrameworkCore": "Information",
+ "Quartz": "Debug"
}
}
},
"Logging": {
"LogLevel": {
- "Default": "Information",
+ "Default": "Debug",
"Microsoft.AspNetCore": "Warning",
"Quartz": "Debug"
}
@@ -39,7 +40,7 @@
//璺ㄥ煙
"Cors": {
"PolicyName": "CorsIpAccess", //绛栫暐鍚嶇О
- "EnableAllIPs": false, //褰撲负true鏃讹紝寮�鏀炬墍鏈塈P鍧囧彲璁块棶銆�
+ "EnableAllIPs": true, //褰撲负true鏃讹紝寮�鏀炬墍鏈塈P鍧囧彲璁块棶銆�
// 鏀寔澶氫釜鍩熷悕绔彛锛屾敞鎰忕鍙e彿鍚庝笉瑕佸甫/鏂滄潌锛氭瘮濡俵ocalhost:8000/锛屾槸閿欑殑
// 娉ㄦ剰锛宧ttp://127.0.0.1:1818 鍜� http://localhost:1818 鏄笉涓�鏍风殑
"IPs": "http://127.0.0.1:8080,http://localhost:8080,http://localhost:8081"
--
Gitblit v1.9.3