BlazorExtensions / Logging

Microsoft Extension Logging implementation for Blazor
MIT License
216 stars 31 forks source link

Logging does not work on Chrome #16

Closed MarkStega closed 6 years ago

MarkStega commented 6 years ago

I added a bunch of logging to several of my Blazor pages. Nothing was showing up in the Chrome console. I was using the vanilla

@inject ILogger<ORManagerView> m_Logger

and

    m_Logger.LogDebug("ORManagerView OnInitAsync() entry");

So I tried in Firefox & Edge, Here are the results:

Chrome Version 68.0.3440.84 (Official Build) (64-bit) -- No output to console Microsoft Edge 42.17134.1.0 -- Works as desired Firefox 61.1.1 (64 bit) -- Works as desired

galvesribeiro commented 6 years ago

As you can see on another issue here, you need to set the proper log filter on Chrome. https://github.com/BlazorExtensions/Logging/issues/7#issuecomment-397965829

That is why you are not seeing the logs on it as the default is different than Edge and FF.

Let me know if I can help further.

MarkStega commented 6 years ago

@galvesribeiro Thank you, indeed that was the issue. It would be a good thing if this was pointed out in your readme.md. maybe a new heading 'Issues'