NLog LoggerProvider for Microsoft.Extensions.Logging for logging in .NET Standard libraries and .NET Core applications. For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
$ dotnet add package NLog.Extensions.LoggingIntegrates NLog as Logging provider for Microsoft.Extensions.Logging, by just calling AddNLog() on the Logging-builder.
Providing features like:
BeginScopeIf using ASP.NET Core then check NLog.Web.AspNetCore.
Supported platforms:
Register NLog as logging provider:
builder.Logging.ClearProviders();
builder.Logging.AddNLog();
Useful Links: