NLog 6.1.4

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.
38
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
36
NLog.Targets.ElasticSearch
An NLog target that utilises the elasticsearch low level client.
36
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.
35
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
35
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
34
NLog.Config
Empty NLog.config file.
34
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.
34
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/v4.4/src/NuGet/NLog.Config/content/NLog.config - set "Copy To Output Directory" to "Copy if newer"
34
NLog.Web.AspNetCore
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
33
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.
33
NLog.Targets.ElasticSearch
An NLog target that utilises the elasticsearch low level client.
33
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/v4.4/src/NuGet/NLog.Config/content/NLog.config - set "Copy To Output Directory" to "Copy if newer"
33

Changelog:

  • [#6225] AsyncTaskTarget - Fixed bug when using BatchSize=1 and doing explicit flush and next LogEvent fails. (@snakefoot)
  • [#6206] MruCache - Changed to ConcurrentDictionary but still single writer. (@snakefoot)
  • [#6205] TargetWithFilterChain - Increase CallSite MaxCapacity from 1000 to 2000. (@snakefoot)
  • [#6197] JsonAttribute - New constructor with JsonLayout and Encode = false. (@snakefoot)
  • [#6174] Reduce AOT file-size by changing PropertyTypeConverter to avoid Dictionary for conversion mapping. (@snakefoot)
  • [#6177] Reduce AOT file-size by changing LogFactory PurgeObsoleteLoggers to clone Dictionary instead of ToList. (@snakefoot)
  • [#6185] Reduce AOT file-size by changing to use yield instead of Linq. (@snakefoot)
  • [#6188] Reduce AOT file-size by changing ConfigurationItemFactory from Dictionary to Array of PropertyInfo. (@snakefoot)
  • [#6192] Reduce AOT file-size by changing Target FindAllLayouts to use HashSet instead of Linq Distinct. (@snakefoot)
  • [#6193] Reduce AOT file-size by changing XmlLoggingConfiguration AutoReloadFileNames to use yield instead of Linq. (@snakefoot)
  • [#6195] Reduce AOT file-size by changing LoggingConfiguration CheckUnusedTargets to use HashSet instead of Linq. (@snakefoot)
  • [#6204] TemplateEnumerator - Replace LiteralHole with CurrentHole and CurrentLiteral. (@snakefoot)
  • [#6223] XmlParser - ReadUntilChar avoid extra string-allocation on trim InnerText. (@snakefoot)
  • [#6222] XmlParser - Simplify ReadUntilChar by extracting parse of attribute-name into ReadEntityName. (@snakefoot)
  • [#6209] AppVeyor - Visual Studio 2026. (@snakefoot)
  • [#6199] Fixed nullable warnings from Activator.CreateInstance. (@snakefoot)
  • [#6190] SetupConfigurationTargetBuilder - Fix Sonar Code Smell. (@snakefoot)
  • [#6176] TryNLogSpecificConversion - Refactor parsing Layout from string. (@snakefoot)
  • [#6210] ScopeContext - Fix List capacity for GetAllNestedStates. (@jnyrup)
  • [#6211] ScopeContext - Renamed PushNestedState to CollectNestedState. (@snakefoot)
  • [#6214] ScopeContext - Rename CaptureNestedContext to CloneNestedContext. (@snakefoot)
  • [#6216] ScopeContext - Simplify CaptureContextProperties when only nested state. (@snakefoot)
  • [#6217] ScopeContext - Unify CollectNestedState implementation. (@snakefoot)

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