chore: 添加应用默认配置文件

This commit is contained in:
Scottxjw
2026-08-17 09:24:06 +08:00
parent 0667e2e9b8
commit d45d9f4ca3
2 changed files with 29 additions and 0 deletions

1
.gitignore vendored
View File

@@ -13,6 +13,7 @@ logs/
output/
*.csv
*.json
!**/appsettings*.json
# 测试日志
test_logs/

View File

@@ -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"]
}
}