NLog 6.0.0-rc2

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
NLog.Slack
NLog target for Slack - your logs in one place and instantly searchable, everywhere.
14
NLog.Slack
An NLog target for Slack - your logs in one place and instantly searchable, everywhere. Check out the GitHub repo for setup instructions: https://github.com/eth0izzle/NLog.Slack
13
NLog.Slack
An NLog target for Slack - your logs in one place and instantly searchable, everywhere. Check out the GitHub repo for setup instructions: https://github.com/eth0izzle/NLog.Slack
12
Castle.Core
Core of the castle project
11
RavenDB.Client
This package includes the client API of RavenDB. RavenDB is a document database for the .NET platform, offering a flexible data model design to fit the needs of real world systems.
10

NLog v6.0 RC2 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. 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-rc2 5 06/03/2025
6.0.0-rc1 3 05/27/2025
6.0.0-preview1 7 05/02/2025
5.5.0 1 06/02/2025
5.4.0 10 02/27/2025
5.3.4 12 10/09/2024
5.3.3 10 10/09/2024
5.3.2 13 10/09/2024
5.3.1 13 10/09/2024
5.2.8 14 06/18/2024
5.2.7 10 10/09/2024
5.2.6 14 03/17/2024
5.2.5 11 10/09/2024
5.2.4 10 10/09/2024
5.2.3 13 10/09/2024
5.2.2 13 10/09/2024
5.2.1 10 10/09/2024
5.2.0 13 10/09/2024
5.1.5 11 10/09/2024
5.1.4 13 10/09/2024
5.1.3 11 10/09/2024
5.1.2 14 10/09/2024
5.1.1 13 10/09/2024
5.1.0 11 10/09/2024
5.0.5 8 10/09/2024
5.0.4 9 10/17/2022
5.0.3 8 10/09/2024
5.0.2 14 10/09/2024
5.0.1 13 10/09/2024
5.0.0 14 10/09/2024
4.7.15 11 10/09/2024
4.7.14 11 10/09/2024
4.7.13 10 10/09/2024
4.7.12 14 10/09/2024
4.7.11 10 10/09/2024
4.7.10 13 10/09/2024
4.7.9 10 10/09/2024
4.7.8 7 10/09/2024
4.7.7 13 10/09/2024
4.7.6 12 10/09/2024
4.7.5 11 10/09/2024
4.7.4 9 10/09/2024
4.7.3 13 08/18/2023
4.7.2 13 10/09/2024
4.7.1 11 10/09/2024
4.7.0 13 10/09/2024
4.6.8 15 11/27/2023
4.6.7 13 10/09/2024
4.6.6 11 10/09/2024
4.6.5 11 10/09/2024
4.6.4 11 10/09/2024
4.6.3 13 10/09/2024
4.6.2 13 10/09/2024
4.6.1 11 10/09/2024
4.6.0 8 10/09/2024
4.5.11 12 10/09/2024
4.5.10 14 10/09/2024
4.5.9 8 10/09/2024
4.5.8 15 10/09/2024
4.5.7 13 10/09/2024
4.5.6 13 10/09/2024
4.5.5 13 10/09/2024
4.5.4 12 10/09/2024
4.5.3 13 10/09/2024
4.5.2 13 10/09/2024
4.5.1 13 10/09/2024
4.5.0 14 10/09/2024
4.4.13 10 10/09/2024
4.4.12 13 10/09/2024
4.4.11 13 10/09/2024
4.4.10 12 10/09/2024
4.4.9 12 10/09/2024
4.4.8 9 10/09/2024
4.4.7 11 10/09/2024
4.4.6 13 10/09/2024
4.4.5 13 10/09/2024
4.4.4 13 10/09/2024
4.4.3 12 10/09/2024
4.4.2 12 10/09/2024
4.4.1 12 10/09/2024
4.4.0 14 10/09/2024
4.3.11 10 10/09/2024
4.3.10 11 10/09/2024
4.3.9 12 10/09/2024
4.3.8 13 10/09/2024
4.3.7 10 10/09/2024
4.3.6 11 10/09/2024
4.3.5 9 10/09/2024
4.3.4 12 10/09/2024
4.3.3 13 10/09/2024
4.3.2 10 10/09/2024
4.3.1 13 10/09/2024
4.3.0 10 10/09/2024
4.2.3 11 10/09/2024
4.2.2 10 10/09/2024
4.2.1 13 10/09/2024
4.2.0 13 10/09/2024
4.1.2 12 10/09/2024
4.1.1 13 10/09/2024
4.1.0 11 10/09/2024
4.0.1 10 10/09/2024
4.0.0 8 10/09/2024
3.2.1 12 10/09/2024
3.2.0 10 10/09/2024
3.1.0 10 10/09/2024
3.0.0 13 10/09/2024
2.1.0 16 10/09/2024
2.0.1.2 8 10/09/2024
2.0.0.2000 12 10/09/2024
1.0.0.505 13 10/09/2024