Added logging, added Elmah error logging

This commit is contained in:
2025-09-27 13:51:30 +02:00
parent cea3e571f1
commit fad7f8454f
5 changed files with 51 additions and 35 deletions

View File

@@ -5,6 +5,24 @@
"Microsoft.AspNetCore": "Warning"
}
},
"Serilog": {
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
"MinimumLevel": "Information",
"WriteTo": [
{ "Name": "Console" },
{ "Name": "File", "Args": { "path": "logs/log.txt", "rollingInterval": "Day", "retainedFileCountLimit": 7 } }
],
"Properties": {
"Application": "Embeddingsearch.Indexer"
}
},
"Elmah": {
"AllowedHosts": [
"127.0.0.1",
"::1"
],
"LogFolder": "./Elmah"
},
"AllowedHosts": "*",
"Ldap": {
"Host": "ld50.dev",