NLog 6.0.0-rc4
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 |
---|---|
Common.Logging.NLog
Common.Logging library bindings for NLog 1.0 logging framework.
|
28 |
Exceptionless.NLog
NLog target that sends log entries to Exceptionless. Exceptionless is a cloud based error reporting service that sends your exceptions to https://exceptionless.com and provides aggregated views and analytics.
|
43 |
NLog.Database
NLog.Database includes DatabaseTarget for writing to any database with DbProvider support
|
27 |
NLog.Database
NLog.Database includes DatabaseTarget for writing to any database with DbProvider support
|
28 |
NLog.Database
NLog.Database includes DatabaseTarget for writing to any database with DbProvider support
|
36 |
NLog.Database
NLog.Database includes DatabaseTarget for writing to any database with DbProvider support
|
68 |
NLog.Extensions.Logging
NLog LoggerProvider for Microsoft.Extensions.Logging for logging in .NET Standard libraries and .NET Core applications.
For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
|
25 |
NLog.Extensions.Logging
NLog LoggerProvider for Microsoft.Extensions.Logging for logging in .NET Standard libraries and .NET Core applications.
For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
|
26 |
NLog.Extensions.Logging
NLog LoggerProvider for Microsoft.Extensions.Logging for logging in .NET Standard libraries and .NET Core applications.
For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
|
30 |
NLog.Extensions.Logging
NLog LoggerProvider for Microsoft.Extensions.Logging for logging in .NET Standard libraries and .NET Core applications.
For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
|
65 |
NLog.Extensions.Logging
NLog provider for Microsoft.Extensions.Logging for usage in .NET Standard libraries and console applicaties.
For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.Web.AspNetCore
|
28 |
NLog.Extensions.Logging
NLog provider for Microsoft.Extensions.Logging for usage in .NET Standard libraries and console applicaties.
For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.Web.AspNetCore
|
31 |
NLog.Targets.ElasticSearch
An NLog target that utilises the elasticsearch low level client.
|
25 |
NLog.Targets.ElasticSearch
NLog target for ElasticSearch
|
26 |
NLog.Web.AspNetCore
Extend NLog with targets and layout renderers for websites and webapplications on the ASP.NET Core platform.
|
26 |
RocketMQ.Client
.NET Client for Apache RocketMQ
|
25 |
RocketMQ.Client
.NET Client for Apache RocketMQ
|
26 |
RocketMQ.Client
.NET Client for Apache RocketMQ
|
28 |
RocketMQ.Client
.NET Client for Apache RocketMQ
|
53 |
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.
- Log4JXmlEventLayout - Enforce MaxRecursionLimit = 0
- RegisterObjectTransformation to preserve public properties
- DatabaseTarget with support for AOT (@JohnVerheij)
- DatabaseTarget only assign ConnectionString when specified (@JohnVerheij)
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.1 | 0 | 06/27/2025 |
6.0.0 | 3 | 06/26/2025 |
6.0.0-rc4 | 3 | 06/19/2025 |
6.0.0-rc3 | 3 | 06/10/2025 |
6.0.0-rc2 | 3 | 06/06/2025 |
6.0.0-rc1 | 4 | 06/04/2025 |
6.0.0-preview1 | 5 | 05/02/2025 |
5.5.0 | 3 | 06/03/2025 |
5.4.0 | 10 | 03/14/2025 |
5.3.4 | 26 | 11/11/2024 |
5.3.3 | 21 | 11/14/2024 |
5.3.2 | 29 | 05/12/2024 |
5.3.1 | 19 | 05/11/2024 |
5.2.8 | 27 | 02/04/2024 |
5.2.7 | 16 | 04/27/2024 |
5.2.6 | 16 | 04/27/2024 |
5.2.5 | 16 | 04/27/2024 |
5.2.4 | 20 | 04/27/2024 |
5.2.3 | 18 | 05/24/2024 |
5.2.2 | 17 | 04/28/2024 |
5.2.1 | 13 | 12/05/2024 |
5.1.5 | 17 | 05/12/2024 |
5.1.4 | 17 | 05/09/2024 |
5.1.0 | 16 | 05/12/2024 |
5.0.5 | 13 | 05/08/2024 |
5.0.4 | 22 | 07/04/2023 |
5.0.3 | 21 | 07/04/2023 |
4.7.15 | 25 | 07/04/2023 |
4.7.12 | 27 | 07/04/2023 |
4.7.3 | 17 | 05/02/2024 |
4.7.0 | 18 | 04/30/2024 |
4.6.5 | 20 | 05/01/2024 |
4.6.3 | 19 | 05/02/2024 |
4.6.1 | 26 | 07/16/2023 |
4.5.10 | 18 | 05/10/2024 |
4.5.9 | 20 | 07/04/2023 |
4.5.0 | 15 | 04/28/2024 |
4.4.0 | 19 | 05/02/2024 |
4.3.11 | 21 | 07/04/2023 |
4.3.3 | 18 | 05/24/2024 |
4.3.0 | 19 | 05/02/2024 |
4.2.0 | 17 | 07/04/2023 |
4.1.0 | 18 | 04/28/2024 |
4.0.0 | 12 | 12/03/2024 |
3.2.1 | 25 | 05/02/2024 |
3.2.0 | 20 | 04/29/2024 |
3.1.0 | 16 | 07/16/2023 |
3.0.0 | 27 | 05/12/2024 |
2.1.0 | 16 | 05/26/2024 |
2.0.1.2 | 15 | 11/29/2024 |