From d45d9f4ca3009331e3b8c78b33af50e37926e269 Mon Sep 17 00:00:00 2001 From: Scottxjw <13374147+scottxjw@user.noreply.gitee.com> Date: Mon, 17 Aug 2026 09:24:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/Gpulse.WCT.DataAnalyzer/appsettings.json | 28 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/Gpulse.WCT.DataAnalyzer/appsettings.json diff --git a/.gitignore b/.gitignore index df1a69f..09c5b87 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ logs/ output/ *.csv *.json +!**/appsettings*.json # 测试日志 test_logs/ diff --git a/src/Gpulse.WCT.DataAnalyzer/appsettings.json b/src/Gpulse.WCT.DataAnalyzer/appsettings.json new file mode 100644 index 0000000..bc6934a --- /dev/null +++ b/src/Gpulse.WCT.DataAnalyzer/appsettings.json @@ -0,0 +1,28 @@ +{ + "Database": { + "Type": "sqlite", + "LocalPath": "./data/database/local.db", + "ReleasePath": "./data/database/release.db" + }, + "Parser": { "BatchSize": 1000 }, + "Paths": { + "LogDir": "./data/logs", + "OutputDir": "./data/output" + }, + "Serilog": { + "Using": ["Serilog.Sinks.Console", "Serilog.Sinks.File"], + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Warning", + "Microsoft.EntityFrameworkCore": "Warning", + "Gpulse.WCT.DataAnalyzer": "Debug" + } + }, + "WriteTo": [ + { "Name": "Console" }, + { "Name": "File", "Args": { "path": "./data/logs/gpulse-wct-data-analyzer-.log", "rollingInterval": "Day", "retainedFileCountLimit": 7, "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}" } } + ], + "Enrich": ["FromLogContext"] + } +}