feat(maui): implement unified Serilog logging infrastructure and Blazor/JS interop bridge

This commit is contained in:
2026-05-21 20:25:32 +02:00
parent 0a3ca77d46
commit f902073bcb
10 changed files with 738 additions and 5 deletions
+45
View File
@@ -0,0 +1,45 @@
{
"Serilog": {
"Using": [
"Serilog.Sinks.File",
"Serilog.Sinks.Debug",
"Serilog.Sinks.Async"
],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.AspNetCore": "Warning",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "File",
"Args": {
"path": "LOG_PATH_PLACEHOLDER",
"rollingInterval": "Day",
"retainedFileCountLimit": 7,
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] [ThreadId: {ThreadId}] [{SourceContext}] {Message:lj}{NewLine}{Exception}",
"shared": true
}
}
]
}
},
{
"Name": "Debug",
"Args": {
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] [ThreadId: {ThreadId}] [{SourceContext}] {Message:lj}{NewLine}{Exception}"
}
}
],
"Enrich": [
"FromLogContext"
]
}
}