BlazorExtensions / Logging

Microsoft Extension Logging implementation for Blazor
MIT License
215 stars 32 forks source link

BrowserConsoleLogger to handle different routing #68

Open object71 opened 2 years ago

object71 commented 2 years ago

In some cases the current solution produces an error trying to import the js file. In my case that was a simple blazor router where when I visit a route for example "/counter" it would try to import the script from "/counter_content/Blazor.Extensions.Logging/BrowserConsoleLogger.js". Using the navigation manager for the other case where the blazor app might be hosted in a route different than the root of the website.

object71 commented 2 years ago

@attilah You should be the mainteiner of this repository. Could you take a look at my changes?

object71 commented 2 years ago

@galvesribeiro Maybe you can take a look?