Logging should be simple. It should come out of the box in any programming language + framework. I’ve seen too many developers use
Console.WriteLine(...) as a way to log in their code because for some reason, wiring logging frameworks is complicated (at least feels complicated).
if you are facing this error : CS0117 ‘LoggerFactory’ does not contain a definition for ‘Create’. Run the below command in your solution folder to add the packages to your solution.
$ dotnet add package Microsoft.Extensions.Logging.Console