NLog extension for Microsoft.Extensions.Hosting for logging in .NET Standard libraries and .NET Core applications using IHostBuilder. For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
$ dotnet add package NLog.Extensions.HostingIntegrates NLog as Logging provider for Microsoft.Extensions.Logging, by just calling UseNLog() on the application-IHostBuilder.
Providing features like:
BeginScopeIf using ASP.NET Core then check NLog.Web.AspNetCore.
Supported platforms:
Registration of NLog as logging provider:
var hostBuilder = new HostBuilder().UseNLog();
Useful Links