In Blazor WebAssembly, use ILoggerFactory for unhandled exceptions #19533
Labels
area-blazor
Includes: Blazor, Razor Components
Done
This issue has been fixed
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
Milestone
Currently,
WebAssemblyRenderer
's override forHandleException
simply callsConsole.Error.WriteLine
. This means there's no way to plug in any customer exception logging feature.We should change this to use whatever
ILoggerFactory
is registered in DI.The text was updated successfully, but these errors were encountered: