Understanding the available logging providers
.NET 5 supports multiple built-in logging providers as well as several third-party logging providers. APIs exposed by these providers help in writing log output to different sources, such as a file or event log supported by the providers. Your code can also enable multiple providers, which is a very common scenario when you are moving from one provider to another, where you can keep the old one, monitor the new one, and once you are good, you can retire the old provider. Let's discuss both types of providers in detail.
Built-in logging providers
All built-in logging providers are supported in the Microsoft.Extensions.Logging
namespace. Let's have a look at some of them:
Third-party logging providers
While .NET 5 provides several powerful inbuilt logging providers, it also supports third-party logging providers. Let's look at them: