NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #99 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
Latest stable
6.2.2
Last release 1 months ago
15 Oct 2026
Ships on a steady schedule
a new release about every 4 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
98 versions withdrawn
withdrawn after publishing
127 years old
222 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Note: structured logging has been removed in this beta and will be reintroduced in later betas
.NET Standard 2 support
Note: structured logging has been removed in this beta and will be reintroduced in later betas
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
## Fixes - #2600 Fix 'System.ReadOnlySpan`1[System.Char]' cannot be converted to type 'System.String' (@snakefoot)
Fix: ReconfigExistingLoggers sometimes throws an Exception (@jpdillingham)
Fix: ReconfigExistingLoggers sometimes throws an Exception (@jpdillingham)
Fixes
## Fixes - #2164 JsonLayout - Don't mark ThreadAgnostic when IncludeMdc or IncludeMdlc is enabled (@snakefoot)
## Features - #2110 NdlcLayoutRenderer - Nested Diagnostics Logical Context (@snakefoot) - #2114 EventlogTarget: Support for MaximumKilobytes (@304Not
## Features - #2090 ${log4jxmlevent} - Added IncludeAllProperties option (@snakefoot) - #2090 Log4JXmlEvent Layout - Added IncludeAllProperties, Inclu
## Features - #2078 Include MDLC in log4j renderer (option) (@thoemmi)
## Features - #2063 JsonLayout - Added JsonAttribute property EscapeUnicode (@snakefoot) ## Improvements - #2075 StackTraceLayoutRenderer with Raw for
Features
Improvements
Features
Improvements
## Features - #2006 Added AsyncTaskTarget - Base class for using async methods (@snakefoot) - #2051 Added LogMessageGenerator overloads for exceptions
Nothing published for this version
Nothing published for this version
See https://github.com/NLog/NLog/milestone/39?closed=1
See https://github.com/NLog/NLog/milestone/39?closed=1
See https://github.com/NLog/NLog/milestone/39?closed=1
See https://github.com/NLog/NLog/milestone/39?closed=1
#### Fixes - #2010 LogFactory - Ensure to flush and close on shutdown - fixes broken logging (@snakefoot) - #2017 WebServiceTarget - Fix boolean param
See https://github.com/NLog/NLog/milestone/38?closed=1
See https://github.com/NLog/NLog/milestone/38?closed=1
#### Features - #2000 Add weekly archival option to FileTarget (@dougthor42) - #2009 Load assembly event (@304NotModified) - #1917 Call NLogPackageLoa
## Fixes - #1966 System.UriFormatException on load (Mono) (@JustArchi) - #1960 EventLogTarget: Properly parse and set EventLog category (@marinsky)
#### Features - #1799 FileTarget: performance improvement: 10-70% faster, less garbage collecting (3-4 times less) by reusing buffers (@snakefoot, @An
<include> (@304NotModified)Nothing published for this version
Nothing published for this version
Fixes for medium trust (@snakefoot, @304notmodified)
Summary:
Detail:
Nothing published for this version
Nothing published for this version
## Features - #1583 Don't stop logging when there is an invalid layoutrenderer in the layout. (@304NotModified) - #1740 WebServiceTarget support for J
### V4.4-rc2 (2016/12/10) #### Features - #1836 Callsite: add includeNamespace option (@304NotModified) - #1817 Added condition to AutoFlushWrappper (
## Features - #1583 Don't stop logging when there is an invalid layoutrenderer in the layout. (@304NotModified) - #1740 WebServiceTarget support for J
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
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
## Improvements - #1700 Improved concurrency when multiple Logger threads are writing to async Target (@snakefoot) - #1750 Log payload for NLogViewerT
Improvements
Fixes
## Features - #1680 Append to existing archive file (@304NotModified) - #1669 AsyncTargetWrapper - Allow TimeToSleepBetweenBatches = 0 (@snakefoot) -
## Features - #1641 FileTarget: Add WriteFooterOnArchivingOnly parameter. (@bhaeussermann) - #1628 Add ExceptionDataSeparator option for ${exception}
Nothing published for this version
## Features - #1619 NetworkTarget: Added option to specify EOL (@kevindaub) ## Improvements - #1596 Performance tweak in NLog routing (@304NotModified
## Features - #1469 Allow overwriting possible nlog configuration file paths (@304NotModified) - #1578 Add support for name parameter on ${Assembly-ve
## Features - #1531 Support Android 4.4 (@304NotModified) - #1551 Addded CompoundLayout (@luigiberrettini) ## Fixes - #1548 Bugfix: Can't update Event
## Features - #1471 Add else option to ${when} (@304NotModified) - #1481 get items for diagnostic contexts (DiagnosticsContextes, GetNames() method) (
Nothing published for this version
[#1423] Injection of zip-compressor for fileTarget (@AndreGleichner)
One column per quarter.