I have a Blazor Server app in which I log requests/other stuff using ILogger (Serilog under the hood).
The problem is that when an unhandled exception occurs, the circuit breaks and that error is logged only to the browser console. I want to be able to log the exception in a global manner so that I can later check the logs (Seq) and address the issue. I already looked here https://github.com/dotnet/aspnetcore/issues/13452 but cannot wrap my head around a solution.
I don't think the question requires a code example.