NLog.Extensions.Logging 6.0.1

NLog.Extensions.Logging

Integrates NLog as Logging provider for Microsoft.Extensions.Logging, by just calling AddNLog() on the Logging-builder.

Providing features like:

If using ASP.NET Core then consider using NLog.Web.AspNetCore.

Supported platforms:

  • .NET 5, 6, 7, 8 and 9
  • .NET 2 and 3
  • .NET Standard 2.0 and 2.1
  • .NET 4.6.1 - 4.8

Registration of NLog as logging provider:

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

Useful Links:

No packages depend on NLog.Extensions.Logging.

ChangeLog: - Updated to NLog v6.0 - Removed support for NetStandard 1.3 + 1.5 - Updated .NET Framework 4.6.2 with NET8-nuget-dependencies - Enabled nullable references - Avoid boxing when extracting LogEvent properties from struct - Reduce allocation when creating LogEvent with properties by using ReadOnlySpan - Enabled <IsAotCompatible> - Added ${host-environment} for NLog.Extensions.Hosting - Added ${host-rootdir} for NLog.Extensions.Hosting - Added ${host-appname} for NLog.Extensions.Hosting - Added RegisterHostSettings for NLog.Extensions.Hosting Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD List of major changes in NLog 6.0: https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html

Version Downloads Last updated
6.0.1 6 07/10/2025
6.0.0 6 07/10/2025
6.0.0-rc4 6 07/10/2025
6.0.0-rc3 6 07/10/2025
6.0.0-rc2 6 07/10/2025
5.5.0 6 07/10/2025
5.4.0 6 07/10/2025
5.3.15 6 07/10/2025
5.3.14 6 07/10/2025
5.3.13 6 07/10/2025
5.3.12 6 07/10/2025
5.3.11 6 07/10/2025
5.3.10 6 07/10/2025
5.3.9 6 07/10/2025
5.3.8 6 07/10/2025
5.3.7 6 07/10/2025
5.3.5 6 07/10/2025
5.3.4 7 07/10/2025
5.3.3 6 07/10/2025
5.3.2 6 07/09/2025
5.3.1 6 07/10/2025
5.3.0 6 07/10/2025
5.2.5 7 07/10/2025
5.2.3 6 07/10/2025
5.2.2 6 07/10/2025
5.2.1 6 07/10/2025
5.2.0 6 07/10/2025
5.1.0 6 07/10/2025
5.0.4 6 07/10/2025
5.0.3 6 07/10/2025
5.0.2 6 07/10/2025
5.0.1 6 07/10/2025
5.0.0 6 07/09/2025
1.7.5 6 07/10/2025
1.7.4 6 07/10/2025
1.7.3 6 07/10/2025
1.7.2 6 07/10/2025
1.7.1 6 07/10/2025
1.7.0 6 07/10/2025
1.6.5 6 07/10/2025
1.6.4 6 07/10/2025
1.6.3 6 07/10/2025
1.6.2 6 07/10/2025
1.6.1 6 07/10/2025
1.6.0 6 07/10/2025
1.5.4 6 07/10/2025
1.5.3 6 07/10/2025
1.5.2 6 07/10/2025
1.5.1 6 07/10/2025
1.5.0 6 07/10/2025
1.4.0 7 07/10/2025
1.3.0 6 07/10/2025
1.2.1 6 07/10/2025
1.2.0 7 07/10/2025
1.1.0 6 07/10/2025
1.0.2 6 07/10/2025
1.0.1 6 07/10/2025
1.0.0 6 07/10/2025