NLog 6.0.0-rc3

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 Standard 2.0 and 2.1 - .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
Castle.Core
Core of the castle project
27

NLog v6.0 RC3 with the following major changes: - Support AOT builds without build warnings. - New FileTarget without ConcurrentWrites support, but still support KeepFileOpen true / false. - Moved old FileTarget into the new nuget-package NLog.Targets.ConcurrentFile. - Created new nuget-package NLog.Targets.AtomicFile that supports ConcurrentWrites for NET8 on both Windows / Linux. - Created new nuget-package NLog.Targets.GZipFile that uses GZipStream for writing directly to compressed files. - Moved MailTarget into the new nuget-package NLog.Targets.Mail. - Moved NetworkTarget into the new nuget-package NLog.Targets.Network. - New GelfTarget introduced for the new nuget-package NLog.Targets.Network. - New SyslogTarget introduced for the new nuget-package NLog.Targets.Network. - Moved TraceTarget and NLogTraceListener into the new nuget-package NLog.Targets.Trace. - Moved WebServiceTarget into the new nuget-package NLog.Targets.WebService - Removed dependency on System.Text.RegularExpressions and introduced new nuget-package NLog.RegEx. - Removed dependency on System.Xml.XmlReader by implementing own internal basic XML-Parser. - Updated NLog API with Nullable-support and introduced Layout.Empty - Marked [RequiredParameter] as obsolete, and replaced with explicit option validation during initialization. - Marked LogEventInfo.SequenceID and ${sequenceid} as obsolete, and instead use ${counter:sequence=global}. - Added support for params ReadOnlySpan when using C# 13 - Prioritize generic Logger-methods by marking legacy methods with [OverloadResolutionPriority(-1)] when using C# 13 - Skip LogEventInfo.Parameters-array-allocation when unable to defer message-template formatting. - Renamed ChainsawTarget to Log4JXmlTarget to match Log4JXmlEventLayout - Updated NLog.Schema to include intellisense for multiple NLog-assemblies. - Fixed NLog XmlParser to support XML comments within XML processing instructions. - NLog.Targets.Network now also supports NET35. - Updated structs to be readonly to allow compiler optimizations. - Updated interface ILoggingConfigurationElement to support nullable Values. - Updated all projects to include <IsAotCompatible> - Optimized ConsoleTarget to not use Console.WriteLine, and introduced option ForceWriteLine - Added new LogEventInfo constructor that supports ReadOnlySpan - Updated NLog.Schema nuget-package to include targets-file to copy NLog.xsd to project-folder. - Improved configuration-file loading to advise about NLog nuget-packages for missing types. - Log4JXmlEventLayout - Fixed IncludeEmptyValue for Parameters. 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.0.0 0 6/21/2025
6.0.0-rc4 3 6/15/2025
6.0.0-rc3 5 6/10/2025
6.0.0-rc2 5 6/3/2025
6.0.0-rc1 5 5/27/2025
6.0.0-preview1 8 5/2/2025
5.5.0 5 5/29/2025
5.4.0 12 2/18/2025
5.3.4 18 9/17/2024
5.3.3 18 8/14/2024
5.3.2 21 5/5/2024
5.3.1 25 5/5/2024
5.2.8 27 3/4/2024
5.2.7 24 3/9/2024
5.2.6 26 3/9/2024
5.2.5 24 3/9/2024
5.2.4 25 3/9/2024
5.2.3 24 3/9/2024
5.2.2 23 3/9/2024
5.2.1 24 7/2/2023
5.2.0 23 3/9/2024
5.1.5 21 3/9/2024
5.1.4 27 3/9/2024
5.1.3 25 3/9/2024
5.1.2 23 3/9/2024
5.1.1 28 3/9/2024
5.1.0 22 3/9/2024
5.0.5 20 3/9/2024
5.0.4 24 3/9/2024
5.0.3 24 3/9/2024
5.0.2 24 3/9/2024
5.0.1 18 3/9/2024
5.0.0 21 2/28/2024
4.7.15 20 3/4/2024
4.7.14 16 3/4/2024
4.7.13 22 3/4/2024
4.7.12 23 3/4/2024
4.7.11 21 3/4/2024
4.7.10 23 3/4/2024
4.7.9 19 3/9/2024
4.7.8 25 3/9/2024
4.7.7 29 3/9/2024
4.7.6 24 3/9/2024
4.7.5 19 3/9/2024
4.7.4 24 3/9/2024
4.7.3 20 3/9/2024
4.7.2 20 3/9/2024
4.7.1 22 3/9/2024
4.7.0 18 3/9/2024
4.6.8 19 3/9/2024
4.6.7 20 3/9/2024
4.6.6 22 3/9/2024
4.6.5 21 3/9/2024
4.6.4 22 3/9/2024
4.6.3 26 3/9/2024
4.6.2 24 3/9/2024
4.6.1 21 3/9/2024
4.6.0 23 3/9/2024
4.5.11 26 3/4/2024
4.5.10 22 3/4/2024
4.5.9 26 3/9/2024
4.5.8 21 3/9/2024
4.5.7 21 3/9/2024
4.5.6 27 3/9/2024
4.5.5 24 3/9/2024
4.5.4 28 3/9/2024
4.5.3 27 3/9/2024
4.5.2 26 3/9/2024
4.5.1 21 3/9/2024
4.5.0 18 3/9/2024
4.4.13 23 3/4/2024
4.4.12 20 3/4/2024
4.4.11 17 3/4/2024
4.4.10 24 3/4/2024
4.4.9 22 3/9/2024
4.4.8 20 3/9/2024
4.4.7 22 3/9/2024
4.4.6 24 3/9/2024
4.4.5 20 3/9/2024
4.4.4 19 3/9/2024
4.4.3 20 3/9/2024
4.4.2 24 3/9/2024
4.4.1 19 3/9/2024
4.4.0 23 3/9/2024
4.3.11 19 3/4/2024
4.3.10 25 3/4/2024
4.3.9 22 3/9/2024
4.3.8 25 3/9/2024
4.3.7 25 3/9/2024
4.3.6 23 3/9/2024
4.3.5 18 3/9/2024
4.3.4 26 3/9/2024
4.3.3 24 3/9/2024
4.3.2 22 3/9/2024
4.3.1 27 3/9/2024
4.3.0 21 3/9/2024
4.2.3 22 3/9/2024
4.2.2 23 3/9/2024
4.2.1 26 3/9/2024
4.2.0 18 3/9/2024
4.1.2 20 3/9/2024
4.1.1 22 3/9/2024
4.1.0 22 3/9/2024
4.0.1 18 3/9/2024
4.0.0 29 3/9/2024
3.2.1 21 3/9/2024
3.2.0 24 3/9/2024
3.1.0 22 3/9/2024
3.0.0 21 3/9/2024
2.1.0 18 3/9/2024
2.0.1.2 25 3/4/2024
2.0.0.2000 19 3/4/2024
1.0.0.505 22 3/4/2024