Skip to main content
net10.0.NETFramework4.6.2net6.0net8.0.NETStandard2.0.NETStandard2.1

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

Published
Oct 15, 2026
1mo ago
Total Downloads
268.0M
267,991,499

Install

dotnet add package NLog.Extensions.Logging --version 6.2.2
ProductVersions
.NET
net10.0net6.0net8.0
.NET Standard
netstandard2.0netstandard2.1
Other
.NETFramework4.6.2

README

NLog.Extensions.Logging

NLog.Extensions.Logging integrates NLog as a logging provider for Microsoft.Extensions.Logging.

Application code can continue using ILogger<T>, while NLog provides powerful logging capabilities including:

If using ASP.NET Core, use NLog.Web.AspNetCore.

Supported platforms:

  • .NET 6, 7, 8, 9 and 10
  • .NET Standard 2.0 and 2.1
  • .NET 4.6.2 - 4.8

Register NLog as logging provider:

builder.Logging.ClearProviders();
builder.Logging.AddNLog();

Useful Links:

Changes from Previous Version

No structural changes between v6.2.1 and v6.2.2.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 6 target frameworks; confirm the exact target used by your application.The published metadata declares 18 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.