I'm confused about the difference between using System.Diagnostics.Trace Trace.TraceInformation("This is a test")
and using the ILogger logging abstraction logger.LogInformation("This is a test")
.
I'm working in a .Net Core 2.2 project and plan to deploy this as an Azure Web App. Is there a difference in the two approaches? Is one better suited for what I'm doing than the other? Why would one use one over the other?