serilog / serilog-extensions-logging

Serilog provider for Microsoft.Extensions.Logging
Apache License 2.0
313 stars 100 forks source link

Serilog.Extensions.Logging vs Serilog.AspNetCore #202

Closed sentouki closed 2 years ago

sentouki commented 2 years ago

I'm a little bit consfused about what to use. Both seem to do the same, logging, into files or into console. I'm planning to use Serilog for a Blazor Server (.NET 6) project. For now, dumping the logs to the console should be enough but in the future I'd like to log to Seq. Any recommendations? Thanks in advance.

bartelink commented 2 years ago

For questions like this, better to ask a question on stackoverflow.com - logging issues on a repo like this is not a good medium for usage questions and instead are best used for actual engineering issues related to this specific codebase.

In general I'd start with overviews such as https://blog.datalust.co/using-serilog-in-net-6/ and https://nblumhardt.com/2019/10/serilog-in-aspnetcore-3/ You may be able to find a good Serilog Blazor intro article that builds on that (I have not searched.)

Regarding your SO post, I'd suggest: