NLog 6.2.1

NLog is a logging platform for .NET with rich log routing and management capabilities. NLog supports traditional logging, structured logging and the combination of both. Supported platforms: - .NET 6, 7, 8, 9 and 10 - .NET Standard 2.0 and 2.1 - .NET Framework 3.5 - 4.8 - Xamarin Android + iOS (.NET Standard) - Mono 4 For integrating NLog with Microsoft.Extensions.Logging, check: https://www.nuget.org/packages/NLog.Extensions.Logging For using NLog with ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore

Showing the top 20 packages that depend on NLog.

Packages Downloads
NLog.Config
Empty NLog.config file.
7
NLog.Config
NLog.config file to get started with configuring NLog. This package is not mandatory to get started with NLog: the configuration file can created manually (read specs here: https://github.com/NLog/NLog/wiki/Configuration-file) or the configuration can be created programmatically. (read more here: https://github.com/NLog/NLog/wiki/Configuration-API) Note: Unfortunately this package won't work well when using <PackageReference> Advised to: - download manually: https://raw.githubusercontent.com/NLog/NLog/dev/src/NuGet/NLog.Config/content/NLog.config - set "Copy To Output Directory" to "Copy if newer"
7
NLog.Config
Xml file to get started with configuring NLog. This package is not mandatory to get started with NLog: the configuration file can created manually and the configuration can be created programmatically.
7
NLog.Database
NLog.Database includes DatabaseTarget for writing to any database with DbProvider support
7
NLog.Database
NLog.Database includes DatabaseTarget for writing to any database with DbProvider support
10
NLog.Database
NLog.Database includes DatabaseTarget for writing to any database with DbProvider support
92
NLog.Extensions.Logging
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
7
NLog.Extensions.Logging
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
9
NLog.Extensions.Logging
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
17
NLog.Extensions.Logging
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
18
NLog.Extensions.Logging
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
32
NLog.Extensions.Logging
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
39

Changelog:

  • [#6254] Replace System.Random usage with custom ScatterGenerator. (@jobvk)
  • [#6267] JsonLayout - Escape lone surrogates so output stays valid UTF8. (@dylanpulver)
  • [#6275] XML docs with Default value for class properties in Filters namespace. (@dualfroz)
  • [#6276] XML docs with Default value for class properties with unit test. (@snakefoot)
  • [#6265] AtomicFileTarget - Improve recovery when file suddenly disappears. (@snakefoot)
  • [#6266] JsonLayout - Explicit assigned SuppressSpaces should win. (@snakefoot)
  • [#6271] DefaultJsonSerializer - Refactor AppendStringEscape to make method simpler. (@snakefoot)
  • [#6268] XmlHelper - Replace with char.IsHighSurrogate + char.IsLowSurrogate. (@snakefoot)
  • [#6269] XmlHelper - Improve CDATA encoding when first char is invalid. (@snakefoot)
  • [#6273] XmlHelper - Check char.IsHighSurrogate before checking length. (@snakefoot)
  • [#6251] LogManager - Remove CLSCompliant(false) attribute from GetCurrentClassLogger. (@snakefoot)
  • [#6255] NLog.Schema - NLog.Targets.HttpClient + NLog.Targets.OpenTelemetryHttp. (@snakefoot)
  • [#6261] XmlParser - Moved primitive parsing logic into InputCursor. (@snakefoot)
  • [#6264] XmlParser - Optimize parsing of Attributes and InnerText and CDATA. (@snakefoot)
  • [#6280] Layout - FromLiteral is IsInitialized from the start and ThreadAgnostic. (@snakefoot)

NLog v6.2 release notes: https://nlog-project.org/2026/08/16/nlog-6-2-aot-build-size.html

Full changelog: https://github.com/NLog/NLog/releases

For all config options and platform support, check https://nlog-project.org/config/

.NET Framework 3.5

  • No dependencies.

.NET Framework 4.5

  • No dependencies.

.NET Framework 4.6

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

.NET Standard 2.1

  • No dependencies.

Version Downloads Last updated
6.2.2 0 10/15/2026
6.2.1 1 09/18/2026
6.2.0 1 08/30/2026
6.1.4 4 07/12/2026
6.1.3 16 05/10/2026
6.1.2 6 04/04/2026
6.1.1 8 03/20/2026
6.1.0 6 04/16/2026
6.0.7 5 04/24/2026
6.0.6 6 04/24/2026
6.0.5 9 03/25/2026
6.0.4 5 04/24/2026
6.0.3 14 04/06/2026
6.0.2 16 04/24/2026
6.0.1 5 04/24/2026
6.0.0 5 04/24/2026
5.5.1 3 04/24/2026
5.5.0 5 04/24/2026
5.4.0 17 03/25/2026
5.3.4 20 04/07/2026
5.3.3 5 04/24/2026
5.3.2 5 03/20/2026
5.3.1 5 04/24/2026
5.2.8 5 04/24/2026
5.2.7 5 04/24/2026
5.2.6 5 04/24/2026
5.2.5 5 04/24/2026
5.2.4 4 04/24/2026
5.2.3 5 04/24/2026
5.2.2 5 04/24/2026
5.2.1 5 04/24/2026
5.2.0 5 04/24/2026
5.1.5 5 04/24/2026
5.1.4 5 04/24/2026
5.1.3 5 04/24/2026
5.1.2 5 04/24/2026
5.1.1 5 04/24/2026
5.1.0 7 04/24/2026
5.0.5 5 04/24/2026
5.0.4 5 04/24/2026
5.0.3 6 04/24/2026
5.0.2 5 04/24/2026
5.0.1 5 04/24/2026
5.0.0 5 04/24/2026
4.7.15 5 04/24/2026
4.7.14 5 04/24/2026
4.7.13 5 04/24/2026
4.7.12 5 04/24/2026
4.7.11 5 04/24/2026
4.7.10 5 04/24/2026
4.7.9 5 04/24/2026
4.7.8 5 04/24/2026
4.7.7 5 04/24/2026
4.7.6 5 04/24/2026
4.7.5 5 04/24/2026
4.7.4 5 04/24/2026
4.7.3 5 04/24/2026
4.7.2 5 04/24/2026
4.7.1 5 04/24/2026
4.7.0 5 04/24/2026
4.6.8 5 04/24/2026
4.6.7 5 04/24/2026
4.6.6 5 04/24/2026
4.6.5 6 04/24/2026
4.6.4 5 04/24/2026
4.6.3 5 04/24/2026
4.6.2 5 04/24/2026
4.6.1 5 04/24/2026
4.6.0 5 04/24/2026
4.5.11 5 04/24/2026
4.5.10 5 04/24/2026
4.5.9 5 04/24/2026
4.5.8 5 04/24/2026
4.5.7 5 04/24/2026
4.5.6 5 04/24/2026
4.5.5 5 04/24/2026
4.5.4 5 04/24/2026
4.5.3 4 04/24/2026
4.5.2 5 04/24/2026
4.5.1 5 04/24/2026
4.5.0 5 04/24/2026
4.4.13 5 04/24/2026
4.4.12 4 04/24/2026
4.4.11 5 04/24/2026
4.4.10 5 04/24/2026
4.4.9 5 04/24/2026
4.4.8 5 04/24/2026
4.4.7 5 04/24/2026
4.4.6 5 04/24/2026
4.4.5 5 04/24/2026
4.4.4 5 04/24/2026
4.4.3 5 04/24/2026
4.4.2 5 04/24/2026
4.4.1 5 04/24/2026
4.4.0 5 04/24/2026
4.3.11 5 04/24/2026
4.3.10 5 04/24/2026
4.3.9 5 04/24/2026
4.3.8 5 04/24/2026
4.3.7 5 04/24/2026
4.3.6 5 04/24/2026
4.3.5 5 04/24/2026
4.3.4 5 04/24/2026
4.3.3 5 04/24/2026
4.3.2 5 04/24/2026
4.3.1 5 04/24/2026
4.3.0 5 04/24/2026
4.2.3 5 04/24/2026
4.2.2 3 04/24/2026
4.2.1 5 04/24/2026
4.2.0 5 04/24/2026
4.1.2 5 04/24/2026
4.1.1 5 04/24/2026
4.1.0 5 04/24/2026
4.0.1 5 04/24/2026
4.0.0 5 04/24/2026
3.2.1 5 04/24/2026
3.2.0 5 03/23/2026
3.1.0 4 05/10/2026
3.0.0 4 05/09/2026
2.1.0 5 04/24/2026
2.0.1.2 5 04/24/2026
2.0.0.2000 5 04/24/2026
1.0.0.505 5 04/24/2026