NLog 5.4.0

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 5, 6, 7, 8 and 9 - .NET Core 1, 2 and 3 - .NET Standard 1.3+ and 2.0+ - .NET Framework 3.5 - 4.8 - Xamarin Android + iOS (.NET Standard) - Mono 4 For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore

Showing the top 20 packages that depend on NLog.

Packages Downloads
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
1
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
2
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
3
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
25
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
91
NLog.Targets.MauiLog
NLog MauiLog Target for writing to Apple Unified Logging / Android.Util.Log for LogCat
3

ChangeLog:

  • Fix AppDomain BaseDirectory on NET9 when it returns Long UNC (#5698) (@snakefoot)
  • AsyncTaskTarget - Reduce default throttle after failure to 50ms instead of 500ms (#5700) (@snakefoot)
  • ColoredConsoleTarget - Recognize NO_COLOR environment variable (#5702) (@snakefoot)
  • More InternalLogger output when target disabled because failed to initialize (#5696) (@snakefoot)
  • SimpleLayout - FromString avoid first chance exception when unknown layoutrenderer-type (#5681) (@snakefoot)
  • ObjectGraphScanner - Handle property-getter that throws when AOT (#5651) (@snakefoot)
  • LoggingConfigurationParser - Handle property-getter that throws when AOT (#5656) (@snakefoot)
  • Remove Serializable-attribute and SerializationInfo since obsolete in NET8 (#5604) (@snakefoot)
  • Marked JsonLayout EscapeForwardSlash as obsolete (#5695) (@snakefoot)
  • Marked NLogViewerTarget and IncludeNLogData as obsolete (#5694) (@snakefoot)
  • Marked XmlLoggingConfiguration AppConfig as obsolete (#5693) (@snakefoot)
  • Marked XmlLoggingConfiguration InitializeSucceeded as obsolete (#5692) (@snakefoot)
  • Marked LogEventInfo SetStackTrace with UserStackFrameNumber as obsolete (#5691) (@snakefoot)
  • Marked SetupFromEnvironmentVariables and LogToTrace as obsolete (#5689) (@snakefoot)
  • FileTarget - Introduced WriteToFile without concurrentWrites (#5687) (@snakefoot)
  • TraceTarget - Fixed Header output (#5682) (@snakefoot)
  • CounterLayoutRenderer - Lock on readonly field to fix Sonar Code Smell (#5680) (@snakefoot)
  • LogAssemblyVersion should check InternalLogger IsInfoEnabled (#5630) (@snakefoot)
  • MethodFactory - Only register methods from class-types (#5684) (@snakefoot)
  • StringBuilderExt - Updated EqualTo for StringBuilder to foreach-loop (#5686) (@snakefoot)
  • SimpleLayout - Refactor RenderAllRenderers to use foreach (#5611) (@snakefoot)
  • JsonLayout - Optimize AppendStringEscape for success path (#5610) (@snakefoot)
  • JsonLayout - Optimize ExcludeEmptyProperties to skip string cast (#5601) (@snakefoot)

NLog v5.2 changes how to load extensions: https://nlog-project.org/2023/05/30/nlog-5-2-trim-warnings.html

List of major changes in NLog 5.0: https://nlog-project.org/2022/05/16/nlog-5-0-finally-ready.html

Full changelog: https://github.com/NLog/NLog/blob/master/CHANGELOG.md

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

Version Downloads Last updated
6.0.7 0 2025-12-09
6.0.6 0 2025-11-09
6.0.5 0 2025-10-09
6.0.4 0 2025-09-11
6.0.3 0 2025-08-10
6.0.2 0 2025-07-20
6.0.1 0 2025-06-27
6.0.0 0 2025-06-21
5.5.1 0 2025-07-18
5.5.0 0 2025-05-29
5.4.0 9 2025-04-25
5.3.4 0 2024-09-12
5.3.3 335 2025-04-11
5.3.2 0 2024-04-30
5.3.1 0 2024-04-27
5.2.8 3 2025-10-07
5.2.7 0 2023-11-28
5.2.6 0 2023-11-19
5.2.5 0 2023-10-15
5.2.4 0 2023-09-06
5.2.3 0 2023-08-05
5.2.2 0 2023-07-04
5.2.1 0 2023-07-01
5.2.0 0 2023-05-30
5.1.5 0 2023-05-25
5.1.4 0 2023-04-29
5.1.3 0 2023-03-28
5.1.2 0 2023-02-17
5.1.1 0 2022-12-29
5.1.0 0 2022-11-27
5.0.5 0 2022-10-25
5.0.4 0 2022-09-01
5.0.3 0 2022-08-31
5.0.2 0 2022-08-12
5.0.1 0 2022-06-12
5.0.0 0 2022-05-16
4.7.15 0 2022-03-26
4.7.14 0 2022-02-23
4.7.13 0 2021-12-05
4.7.12 0 2021-10-24
4.7.11 0 2021-08-18
4.7.10 0 2021-05-14
4.7.9 0 2021-03-24
4.7.8 0 2021-02-25
4.7.7 0 2021-01-20
4.7.6 0 2020-12-06
4.7.5 0 2020-09-27
4.7.4 0 2020-08-22
4.7.3 0 2020-07-31
4.7.2 0 2020-05-18
4.7.1 0 2020-05-15
4.7.0 0 2020-03-20
4.6.8 0 2019-11-04
4.6.7 0 2019-08-25
4.6.6 0 2019-07-14
4.6.5 0 2019-06-14
4.6.4 0 2019-05-28
4.6.3 0 2019-04-30
4.6.2 0 2019-04-02
4.6.1 0 2019-03-29
4.6.0 0 2019-03-21
4.5.11 0 2018-11-06
4.5.10 0 2018-09-17
4.5.9 0 2018-08-24
4.5.8 0 2018-08-05
4.5.7 0 2018-07-19
4.5.6 0 2018-05-29
4.5.5 0 2018-05-25
4.5.4 0 2018-05-05
4.5.3 0 2018-04-16
4.5.2 0 2018-04-06
4.5.1 0 2018-04-03
4.5.0 0 2018-03-25
4.4.13 0 2018-02-27
4.4.12 0 2017-08-08
4.4.11 0 2017-06-17
4.4.10 0 2017-05-31
4.4.9 0 2017-05-05
4.4.8 0 2017-04-28
4.4.7 0 2017-04-25
4.4.6 0 2017-04-15
4.4.5 0 2017-03-28
4.4.4 0 2017-03-10
4.4.3 0 2017-02-17
4.4.2 0 2017-02-06
4.4.1 0 2016-12-24
4.4.0 0 2016-12-14
4.3.11 0 2016-11-07
4.3.10 0 2016-10-11
4.3.9 0 2016-09-18
4.3.8 0 2016-09-05
4.3.7 0 2016-08-06
4.3.6 0 2016-07-23
4.3.5 0 2016-06-12
4.3.4 0 2016-05-16
4.3.3 0 2016-04-28
4.3.2 0 2016-04-26
4.3.1 0 2016-04-20
4.3.0 0 2016-04-16
4.2.3 0 2015-12-20
4.2.2 0 2015-12-02
4.2.1 0 2015-11-21
4.2.0 0 2015-10-24
4.1.2 0 2015-09-20
4.1.1 0 2015-09-12
4.1.0 0 2015-08-31
4.0.1 0 2015-06-18
4.0.0 0 2015-06-09
3.2.1 0 2015-04-24
3.2.0 0 2015-01-02
3.1.0 0 2014-06-24
3.0.0 0 2014-06-02
2.1.0 0 2013-10-10
2.0.1.2 0 2013-04-08
2.0.0.2000 0 2011-07-18
1.0.0.505 0 2011-01-07