refactor: Move log directory configuration to Application section

- Move LogDirectory from Logging section to Application section in appsettings.json
- Update Program.cs to read from Application:LogDirectory instead of Logging:LogDirectory
- Fix JSON schema validation warning for non-standard Logging properties
- Application section now holds custom application-specific settings
- Standard Logging and Serilog sections remain clean and schema-compliant
This commit is contained in:
2026-07-13 09:51:01 +02:00
parent d61d14145a
commit def4d7b7c7
2 changed files with 8 additions and 6 deletions

View File

@@ -3,8 +3,7 @@
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
},
"LogDirectory": "E:\\LogFiles\\Digital Data\\ECMJobRunner.WebCron"
}
},
"ConnectionStrings": {
"SDD-VMP04-SQL17": "Server=SDD-VMP04-SQL17\\DD_DEVELOP01;Database=DD_ECM;User Id=sa;Password=dd;Encrypt=false;TrustServerCertificate=True;"
@@ -18,5 +17,8 @@
},
"ReC": {
"ApiUrl": "http://172.24.12.39:90"
},
"Application": {
"LogDirectory": "E:\\LogFiles\\Digital Data\\ECMJobRunner.WebCron"
}
}