Logging
Logging copied to clipboard
AddBrowserConsole() causes circular dependency in server-side blazor
Environment:
- Windows 10
- Microsoft Visual Studio 2019 Professional
- .NET 5
- Blazor.Extensions.Logging 2.0.4
Steps to reproduce:
- Create a new server-side Blazor project.
- Install the
Blazor.Extensions.Loggingpackage. - In
Startup.ConfigureServices, create your call toservices.AddLogging, including a call toAddBrowserConsole. - Run the application.
What should happen: The application starts without problems.
What actually happens:
The DI engine throws an exception because of a circular dependence issue involving IJSRuntime, preventing the application from starting.
Is there an update on this? Or have you moved on to another logging package? If so, which one?
Having the same issue with Blazor Server using version 2.0.4