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.Web.AspNetCore
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
47
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
45
NLog.Config
Empty NLog.config file.
43
NLog.Config
Empty NLog.config file.
42
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
42
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.
42
NLog.Targets.ElasticSearch
An NLog target that utilises the elasticsearch low level client.
42
NLog.Extensions.Logging
NLog provider for Microsoft.Extensions.Logging for usage in .NET Standard libraries and console applicaties. For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.Web.AspNetCore
41
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.
41
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"
41
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.
40
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
40
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"
40
NLog.Extensions.Logging
NLog provider for Microsoft.Extensions.Logging for usage in .NET Standard libraries and console applicaties. For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.Web.AspNetCore
40

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.1 14 09/17/2026
6.2.0 16 08/18/2026
6.1.4 22 07/09/2026
6.1.3 31 05/06/2026
6.1.2 49 04/02/2026
6.1.1 41 03/02/2026
6.1.0 51 02/02/2026
6.0.7 58 12/10/2025
6.0.6 53 12/12/2025
6.0.5 41 12/12/2025
6.0.4 47 12/15/2025
6.0.3 46 12/11/2025
6.0.2 50 12/30/2025
6.0.1 54 12/24/2025
6.0.0 43 12/22/2025
6.0.0-rc4 47 02/04/2026
6.0.0-rc3 46 12/19/2025
6.0.0-rc2 57 12/11/2025
6.0.0-rc1 43 12/10/2025
6.0.0-preview1 41 12/11/2025
5.5.1 49 12/24/2025
5.5.0 61 12/20/2025
5.4.0 48 12/12/2025
5.3.4 42 12/11/2025
5.3.3 39 12/21/2025
5.3.2 39 12/21/2025
5.3.1 37 12/12/2025
5.2.8 42 12/12/2025
5.2.7 38 12/21/2025
5.2.6 34 12/15/2025
5.2.5 38 12/15/2025
5.2.4 35 12/22/2025
5.2.3 37 12/15/2025
5.2.2 38 12/12/2025
5.2.1 41 12/20/2025
5.2.0 43 12/14/2025
5.1.5 37 12/10/2025
5.1.4 39 12/21/2025
5.1.3 39 12/20/2025
5.1.2 37 12/13/2025
5.1.1 39 12/20/2025
5.1.0 45 12/15/2025
5.0.5 36 12/20/2025
5.0.4 34 12/18/2025
5.0.3 25 12/21/2025
5.0.2 41 12/10/2025
5.0.1 37 12/17/2025
5.0.0 46 12/12/2025
5.0.0-rc1 44 01/04/2026
5.0.0-preview.3 37 01/19/2026
4.7.15 40 12/14/2025
4.7.14 41 12/14/2025
4.7.13 38 12/10/2025
4.7.12 46 12/20/2025
4.7.11 46 12/15/2025
4.7.10 35 12/11/2025
4.7.9 36 12/20/2025
4.7.8 40 12/13/2025
4.7.7 48 12/20/2025
4.7.6 38 12/16/2025
4.7.5 41 12/21/2025
4.7.4 43 12/10/2025
4.7.3 40 12/20/2025
4.7.2 41 12/20/2025
4.7.1 41 12/22/2025
4.7.0 43 12/15/2025
4.6.8 44 12/20/2025
4.6.7 33 12/20/2025
4.6.6 29 01/07/2026
4.6.5 38 12/21/2025
4.6.4 41 12/15/2025
4.6.3 31 12/10/2025
4.6.2 45 12/30/2025
4.6.1 49 01/01/2026
4.6.0 57 12/19/2025
4.5.11 39 12/20/2025
4.5.10 39 12/11/2025
4.5.9 42 12/20/2025
4.5.8 44 12/22/2025
4.5.7 41 12/11/2025
4.5.6 38 12/14/2025
4.5.5 44 12/17/2025
4.5.4 39 12/11/2025
4.5.3 40 12/10/2025
4.5.2 39 01/05/2026
4.5.1 40 12/20/2025
4.5.0 41 12/15/2025
4.5.0-rc07 39 12/30/2025
4.5.0-rc06 43 02/03/2026
4.4.13 39 12/15/2025
4.4.12 36 12/20/2025
4.4.11 38 12/15/2025
4.4.10 44 12/15/2025
4.4.9 38 12/19/2025
4.4.8 39 12/20/2025
4.4.7 36 12/20/2025
4.4.6 39 12/10/2025
4.4.5 37 12/13/2025
4.4.4 39 12/10/2025
4.4.3 37 12/14/2025
4.4.2 39 12/14/2025
4.4.1 40 12/09/2025
4.4.0 31 12/14/2025
4.3.11 34 12/20/2025
4.3.10 36 12/20/2025
4.3.9 36 12/18/2025
4.3.8 39 12/20/2025
4.3.7 36 12/21/2025
4.3.6 42 01/02/2026
4.3.5 33 12/20/2025
4.3.4 35 12/23/2025
4.3.3 45 12/11/2025
4.3.2 40 12/16/2025
4.3.1 37 12/11/2025
4.3.0 33 12/23/2025
4.2.3 38 01/01/2026
4.2.2 47 12/15/2025
4.2.1 33 12/19/2025
4.2.0 35 12/21/2025
4.1.2 39 12/22/2025
4.1.1 35 12/15/2025
4.1.0 37 01/06/2026
4.0.1 35 12/23/2025
4.0.0 34 12/13/2025
3.2.1 38 12/22/2025
3.2.0 38 12/11/2025
3.1.0 39 12/21/2025
3.0.0 35 12/18/2025
2.1.0 32 12/09/2025
2.0.1.2 40 12/22/2025
2.0.0.2000 32 12/12/2025
1.0.0.505 33 12/22/2025