Open utterances-bot opened 2 years ago
Thanks, excellent article 👍 I like the idea of setting up Serilog in appsettings insted of hard coding it. I ran into a problem with Args settings in WriteTo. I would like to use Elastic json formatter in prod and test but not in development. If I have different arguments to write then the test config will have dev and test arguments appended. https://stackoverflow.com/questions/71560535/wrong-appsetting-json-transformation-items-are-not-merged-but-appended
How to add logs on Console with .NET Core and Serilog - Code4IT
Serilog is a famous logger for .NET projects. In this article, we will learn how to integrate it in a .NET API project and output the logs on a Console.
https://www.code4it.dev/blog/serilog-log-on-console