Cysharp / ZLogger

Zero Allocation Text/Structured Logger for .NET with StringInterpolation and Source Generator, built on top of a Microsoft.Extensions.Logging.
MIT License
1.14k stars 80 forks source link

Worker support? #42

Closed empz closed 3 years ago

empz commented 3 years ago

Is there a way to use ZLogger in the .NET 5-based worker service?

The readme says we need to use ConsoleFramework but isn't both ASP.NET and Console apps in NET 3.1+ use the same IHostBuilder supporting the same ConfigureLogging method?

neuecc commented 3 years ago

everything that run on .NET Generic Host. This means that all frameworks that can use ConfigureLogging are supported.

empz commented 3 years ago

Yes, sorry, it was VS not picking up the nuget installed for some reason.