BlazorExtensions / Logging

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

Log object to console #46

Closed sebastianslutzky closed 5 years ago

sebastianslutzky commented 5 years ago

The wiki says it is possible to log an object, but I cannot see any example in the tests. I can't find the right api to do so either.

I am trying to get the same functionality you get in javascript when you print an object (Console.Log(anObjectOrSetOfObjects)) is this possible to do?

chucker commented 5 years ago

Haven't tried, but https://github.com/BlazorExtensions/Logging/blob/master/test/Blazor.Extensions.Logging.Test/Pages/Index.razor#L20 looks like an example of this.

Did you import the Blazor.Extensions.Logging namespace?

sebastianslutzky commented 5 years ago

yes, that did the trick, thanks! I was missing the import