chore: 添加应用默认配置文件
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,6 +13,7 @@ logs/
|
||||
output/
|
||||
*.csv
|
||||
*.json
|
||||
!**/appsettings*.json
|
||||
|
||||
# 测试日志
|
||||
test_logs/
|
||||
|
||||
28
src/Gpulse.WCT.DataAnalyzer/appsettings.json
Normal file
28
src/Gpulse.WCT.DataAnalyzer/appsettings.json
Normal 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"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user