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 2 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
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.
Nothing published for this version
Improvements - #4836 Fixed missing initialization of layout-parameters for ConditionMethodExpression (#4836) (@snakefoot) - #4821 LogEventInfo - Optim
Improvements
Improvements - #4799 Added IncludeEventProperties + IncludeScopeProperties to improve transition (#4799) (@snakefoot) - #4786 Refactored code to remov
Fixes - #4700 AsyncTargetWrapper - Fix performance for OverflowAction Block on NetCore (#4700) (@snakefoot) - #4644 AsyncTargetWrapper - Swallow OutOf
Fixes - #4627 PropertiesDictionary - Fixed threading issue in EventProperties (#4627) (@snakefoot) - #4631 FileTarget - Failing to CleanupInitializedF
Fixes - #4519 JsonSerializer - Fix CultureNotFoundException with Globalization Invariant Mode (#4519) (@snakefoot) Features - #4475 WebServiceTarget -
Fixes - #4401 JsonSerializer - Fixed bug when handling custom IConvertible returning TypeCode.Empty (#4401) (@snakefoot) Improvements - #4391 Support
Fixes
Improvements
Fixes - #4349 Fixed TrimDirectorySeparators to not use the root-path on Linux (#4349) (@snakefoot) - #4353 Fixed FileTarget archive cleanup within sam
Fixes
Improvements
Performance
Fixes - #4316 Fix TrimDirectorySeparators to handle root-path on Windows and Linux to load Nlog.config from root-path (#4316) (@snakefoot) Improvement
Fixes
Improvements
Fixes - #4229 Skip lookup MainModule.FileName on Android platform to avoid crash (#4229) (@snakefoot) - #4202 JsonLayout - Generate correct json for k
Fixes
Improvements
Performance
Fixes - #4142 JsonSerializer - Ensure invariant formatting of DateTimeOffset (#4142) (@snakefoot) - #4172 AsyncTaskTarget - Flush when buffer is full
Fixes
Features
Improvements
Performance
Fixes - #4106 FileTarget - New current file should write start header, when archive operation is performed on previous file (#4106) (@snakefoot) Impro
Fixes
Improvements
Performance
Other
Features - #4076 DatabaseTarget - Added AllowDbNull for easier support for nullable parameters (#4076) (@snakefoot) Fixes - #4069 Fluent LogBuilder sh
Features - #4017 Allow to change the RuleName of a LoggingRule (#4017) (@304NotModified) - #3974 logging of AggregrateException.Data to prevent it fro
Features
Fixes
Improvements
Performance
Fixes - #3969 FileTarget - ArchiveOldFileOnStartup not working together with ArchiveAboveSize (@snakefoot) Improvements - #3962 XSD: Added Enabled att
Features - #3871 LogManager.Setup().LoadConfigurationFromFile("NLog.config") added to fluent setup (@snakefoot + @304NotModified) - #3909 LogManager.S
Features
Improvements
Fixes
Performance
Nothing published for this version
Nothing published for this version
Fixes - #3566 DatabaseTarget - Auto escape special chars in password, and improve handling of empty username/password (@304NotModified) - #3584 Loggin
Fixes
Features
Improvements
Performance
Features - #3531 Added ${object-path} / ${exception:objectpath=PropertyName}, for rendering a property of an object (e.g. an exception) (#3531) (@304N
Features
Improvements
Performance
Features - #3514 Added XmlLoggingConfiguration(XmlReader reader) ctor, improved docs and annotations (@dmitrychilli, @304NotModified) - #3513 AutoFlus
Fixes - #3476 Fix broken XSD schema - NLog.Schema package (@snakefoot, @304NotModified) Features - #3478 XSD: Support in (@304NotModified) - #3477 ${A
Fixes
Features
<value> in <variable> (@304NotModified)Improvements
Performance
Fixes - #3392 NLog.Schema: Added missing defaultAction attribute on filters element in XSD (@304NotModified) - #3415 AsyncWrapper in Blocking Mode can
Fixes
Features
Improvements
<PackageReference> (@304NotModified)Performance
10 pull requests with refactorings (@snakefoot, @304NotModified)
Fixes
Features
Improvements
Performance
Other
Fixes - #3260 Fix escaping nested close brackets when parsing layout renderers (@lobster2012-user) - #3271 NLog config - Fixed bug where empty xml-ele
Fixes - #3199 LoggingConfigurationParser - Fixed bug in handling of extensions prefix (@snakefoot) - #3253 Fix wrong warnings on element (only wrong w
Fixes
<nlog> element (only wrong warnings) (#3253) (@snakefoot, @304NotModified)Improvements
Performance
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Improvements - #2985 LogBuilder - Support fluent assignment of message-template after properties (@snakefoot) - #2983 JsonSerializer - Use ReferenceEq
Improvements
Fixes
Fixes - #2883 Fix LoadConfiguration for not found config file (@snakefoot, @304NotModified)
Fixes
Fixes - #2865 JSON encoding should create valid JSON for special double values (@snakefoot) Improvements - #2846 Include Entry Assembly File Location
Features - #2809 MethodCallTarget - Support for Lamba method (@snakefoot) - #2816 MessageTemplates - Support rendering of alignment + padding (@snakef
Features
Fixes
Improvements
Performance
Features - #2792 OutputDebugStringTarget - Support Xamarin iOS and Android (@snakefoot) - #2776 FileTarget - Introduced OpenFileFlushTimeout to help w
Features
Fixes
Improvements
Performance
Fixup for NLog.WindowsEventLog package
Fixes
Improvements
Performance
Fixes - #2736 FileTarget - Calculate correct archive date when multiple file appenders (@snakefoot) Features - #2726 WhenRepeated - Support logging ru
Fixes
Features
Improvements
Performance
Sonar warning fixes: #2691, #2694, #2693, #2690, #2685, #2683, #2696 (@snakefoot, @304NotModified)
Fixes
Improvements
Fixes - #2662 FileTarget - Improve handling of archives with multiple active files (@snakefoot) Improvements - #2587 Internal Log - Include target typ
Fixes
Improvements
Performance
Features - #2648 ${processtime} and ${time} added invariant option (@snakefoot) Fixes - #2643 UWP with NetStandard2 on Net Native does not support Ass
Features
Fixes
Performance
Fixes - #2637 Fix IndexOutOfRangeException in NestedDiagnosticsLogicalContext (@snakefoot) - #2638 Handle null values correctly in LogReceiverSecureSe
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
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 →