websocket-client
websocket-client copied to clipboard
Logger initializing error in Blazor WebAssembly
I receive
[WEBSOCKET] Failed to initialize logger, disabling.. Error: System.NullReferenceException: Object reference not set to an instance of an object. blazor.webassembly.js:1 at Websocket.Client.Logging.LogProvider.GetCurrentClassLogger () blazor.webassembly.js:1 at Websocket.Client.WebsocketClient.GetLogger ()
Hi @k-karuna ,
thanks for reporting this.
We should definitely migrate from LibLog (since it is deprecated) into something else.
Here is already a PR that migrates to Microsoft.Extensions.Logging, unfortunately, it is breaking change and cannot be merged right away.
I still believe we can find some other way how to make it break-less and keep the client-side simple (so they don't have to worry about logging).
Working on it