NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet · #98 most downloaded on NuGet
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
Last release 22 days ago
16 Sep 2026
Ships on a steady schedule
a new release about every 4 weeks
Nearly every release is documented
notes for 55 of the last 60 stable releases
98 versions withdrawn
withdrawn after publishing
127 years old
221 releases · first in 1900
[#6254] Replace System.Random usage with custom ScatterGenerator. (@jobvk)
Changelog:
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/
One column per quarter.
[#6215] FileTarget - Added FileLifecycleHooks for extending archive logic. (@Dave-Senn)
Changelog:
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/
[#6225] AsyncTaskTarget - Fixed bug when using BatchSize=1 and doing explicit flush and next LogEvent fails. (@snakefoot)
Changelog:
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/
[#6168] PropertiesDictionary - Preserve MessageTemplate property details when adding extra properties. (@snakefoot)
Changelog:
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/
[#6116] PropertyTypeConverter - Prioritize IFormattable ToString when Format specified. (@snakefoot)
Changelog:
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/
Improvements
[#6101] LogFactory - Flush / FlushAsync asynchronous completion outside Target lock. (@snakefoot)
Changelog:
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/
[#5999] JsonLayout - Added support for DottedRecursion. (@thatrajeevkr)
Changelog:
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/
[#6056] FileTarget - Archive Cleanup sort filenames using natural ordering. (@snakefoot)
Changelog:
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/
[#6027] FileTarget - Improve archive cleanup when using ArchiveSuffixFormat with datetime. (@snakefoot)
Changelog:
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/
Improvements
[#5998] FileTarget - Rolling to next directory should not fail. (@snakefoot)
Changelog:
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/
Improvements #5979 FileTarget - Improve file-wildcard for archive cleanup. ( @snakefoot ) #5980 FileTarget - Extend InternalLogger output with archive
Improvements
Improvements - #5952 FileTarget - Close old files when reaching OpenFileCacheSize. (@snakefoot) - #5948 FileTarget - Closing on OpenFileCacheTimeout a
Improvements
Improvements - #5930 XmlParser - Handle XML comments after root-end-tag. (@snakefoot) - #5929 XmlLoggingConfiguration - Improve handling of invalid XM
Improvements
Improvements - #5898 Changed ConditionExpression to be nullable by default since no Condition means no filtering. (@snakefoot) - #5906 Include Conditi
Improvements
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Improvements - #5858 ConsoleTarget - Added ForceWriteLine to match NLog v6 Schema (#5858) (@snakefoot) - #5866 Layout.FromLiteral to match NLog v6 (#5
Improvements
Nothing published for this version
Nothing published for this version
Improvements - #5572 Layout.FromMethod that supports typed Layout (#5572) (@smnsht) - #5580 Layout.FromMethod that supports typed Layout (without boxi
Improvements
Improvements - #5548 FileTarget - Reset reusable MemoryStream when above max capacity (#5548) (@RomanSoloweow) - #5568 ThreadIdLayoutRenderer - Added
Improvements
Bug fix - #5515 Fix NullReferenceException when using LoggingRules with filters and no targets (#5515) (@snakefoot)
Bug fix
Improvements - #5313 CallSite can hide single class type using AddCallSiteHiddenClassType (#5313) (@wadebaird) - #5489 Logging Rule with FinalMinLevel
Improvements
Nothing published for this version
Improvements - #5450 ConfigurationItemFactory - Skip type attribute lookup for official types (#5450) (@snakefoot) - #5441 LoggingRule - ToString shou
Improvements
Improvements - #5427 FileTarget - Fix Windows FileSystem Tunneling when KeepFileOpen=false (#5427) (@snakefoot) - #5422 AppEnvironmentWrapper - Added
Improvements
Improvements - #5407 FileTarget - Added option WriteHeaderWhenInitialFileNotEmpty (#5407) (@RomanSoloweow) - #5381 FileTarget - Removed explicit File.
Improvements
Improvements - #5344 ConcurrentRequestQueue - Reduced SpinCount to 15, before monitor wait (#5344) (@snakefoot) - #5347 ConfigurationItemFactory - Imp
Improvements
Improvements - #5316 ObjectPath should only render output when finding property-value (#5316) (@snakefoot) - #5318 Typed Layout parses empty string as
Improvements
Improvements - #5308 AutoFlushTargetWrapper - Explicit flush should also await when FlushOnConditionOnly (#5308) (@snakefoot) - #5301 Target precalcul
Improvements
Improvements - #5276 ConfigurationItemFactory - Fix NullReferenceException when skipping already loaded assembly (#5276) (@snakefoot)
Improvements
Improvements - #5191 WrapperTarget - Derive Name from wrappedTarget (#5248) (@snakefoot) - #5249 Updated obsolete warning for ConfigurationReloaded-ev
Improvements
Nothing published for this version
Improvements - #5229 TargetWithContext - Fixed ScopeContext capture when multiple wrappers (#5229) (@snakefoot) - #5227 DefaultJsonSerializer - Cache
Improvements
Improvements - #5207 FileTarget - Recover from file-deleted when same archive-folder (#5207) (@snakefoot) - #5201 NLog.xsd schema with support for var
Improvements
Improvements - #5174 LoggingRule - FinalMinLevel with Layout support (#5174) (@Aaronmsv) - #5177 MailTarget - Added support for email message headers
Improvements
Improvements - #5157 FileTarget - Archive Dynamic FileName ordering ignore case (#5157) (@snakefoot) - #5150 EventLogTarget - EventId with LogEvent Pr
Improvements
Improvements - #5134 XmlLayout - Added Layout-option to XmlElement to match XmlAttribute (#5134) (@snakefoot) - #5126 JsonLayout - Avoid NullReference
Improvements
Improvements - #5102 MessageTemplates ValueFormatter with support for ISpanFormattable (#5102) (@snakefoot) - #5101 Add LogEventDropped handler to the
Improvements
Improvements - #5092 InternalLogger - LogFile expand filepath variables (#5092) (@RyanGaudion) - #5090 ReplaceNewLines - Support Replacement with newl
Improvements
Fixes - #5051 Fixed embedded resource with ILLink.Descriptors.xml to avoid IL2007 (#5051) (@snakefoot)
Fixes
Improvements - #5034 Added embedded resource with ILLink.Descriptors.xml to skip AOT (#5034) (@snakefoot) - #5035 Layout Typed that can handle LogEven
Improvements - #5019 Layout Typed validates fixed values upfront at config initialization, instead of when logging (#5019) (@snakefoot) - #5026 Remove
Improvements
Improvements - #4938 LoggingConfigurationParser should alert when LoggingRule filters are bad (#4938) (@snakefoot) - #4940 CompoundLayout with layout
Improvements
See List of major changes in NLog 5.0.
See List of major changes in NLog 5.0.
Improvements
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →