NLog 5.4.0
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 Core 1, 2 and 3
- .NET Standard 1.3+ and 2.0+
- .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
|
32 |
ChangeLog:
- Fix AppDomain BaseDirectory on NET9 when it returns Long UNC (#5698) (@snakefoot)
- AsyncTaskTarget - Reduce default throttle after failure to 50ms instead of 500ms (#5700) (@snakefoot)
- ColoredConsoleTarget - Recognize NO_COLOR environment variable (#5702) (@snakefoot)
- More InternalLogger output when target disabled because failed to initialize (#5696) (@snakefoot)
- SimpleLayout - FromString avoid first chance exception when unknown layoutrenderer-type (#5681) (@snakefoot)
- ObjectGraphScanner - Handle property-getter that throws when AOT (#5651) (@snakefoot)
- LoggingConfigurationParser - Handle property-getter that throws when AOT (#5656) (@snakefoot)
- Remove Serializable-attribute and SerializationInfo since obsolete in NET8 (#5604) (@snakefoot)
- Marked JsonLayout EscapeForwardSlash as obsolete (#5695) (@snakefoot)
- Marked NLogViewerTarget and IncludeNLogData as obsolete (#5694) (@snakefoot)
- Marked XmlLoggingConfiguration AppConfig as obsolete (#5693) (@snakefoot)
- Marked XmlLoggingConfiguration InitializeSucceeded as obsolete (#5692) (@snakefoot)
- Marked LogEventInfo SetStackTrace with UserStackFrameNumber as obsolete (#5691) (@snakefoot)
- Marked SetupFromEnvironmentVariables and LogToTrace as obsolete (#5689) (@snakefoot)
- FileTarget - Introduced WriteToFile without concurrentWrites (#5687) (@snakefoot)
- TraceTarget - Fixed Header output (#5682) (@snakefoot)
- CounterLayoutRenderer - Lock on readonly field to fix Sonar Code Smell (#5680) (@snakefoot)
- LogAssemblyVersion should check InternalLogger IsInfoEnabled (#5630) (@snakefoot)
- MethodFactory - Only register methods from class-types (#5684) (@snakefoot)
- StringBuilderExt - Updated EqualTo for StringBuilder to foreach-loop (#5686) (@snakefoot)
- SimpleLayout - Refactor RenderAllRenderers to use foreach (#5611) (@snakefoot)
- JsonLayout - Optimize AppendStringEscape for success path (#5610) (@snakefoot)
- JsonLayout - Optimize ExcludeEmptyProperties to skip string cast (#5601) (@snakefoot)
NLog v5.2 changes how to load extensions: https://nlog-project.org/2023/05/30/nlog-5-2-trim-warnings.html
List of major changes in NLog 5.0: https://nlog-project.org/2022/05/16/nlog-5-0-finally-ready.html
Full changelog: https://github.com/NLog/NLog/blob/master/CHANGELOG.md
For all config options and platform support, check https://nlog-project.org/config/
.NET Framework 3.5
- No dependencies.
.NET Standard 2.0
- No dependencies.
.NET Standard 1.5
- System.Xml.XmlDocument (>= 4.3.0)
- System.Threading.Thread (>= 4.3.0)
- System.Text.RegularExpressions (>= 4.3.1)
- System.Runtime.Loader (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.3.0)
- System.Net.Requests (>= 4.3.0)
- System.Net.NameResolution (>= 4.3.0)
- System.Net.Http (>= 4.3.4)
- System.IO.FileSystem.Watcher (>= 4.3.0)
- System.Diagnostics.TraceSource (>= 4.3.0)
- System.Diagnostics.StackTrace (>= 4.3.0)
- System.Data.Common (>= 4.3.0)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- System.Diagnostics.Process (>= 4.3.0)
- NETStandard.Library (>= 1.6.0)
- System.ComponentModel.Primitives (>= 4.3.0)
.NET Framework 4.5
- No dependencies.
.NET Framework 4.6
- No dependencies.
.NET Standard 1.3
- NETStandard.Library (>= 1.6.0)
- System.ComponentModel.Primitives (>= 4.3.0)
- System.Data.Common (>= 4.3.0)
- System.Diagnostics.StackTrace (>= 4.3.0)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- System.Net.NameResolution (>= 4.3.0)
- System.Net.Requests (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.3.0)
- System.Text.RegularExpressions (>= 4.3.1)
- System.Xml.XmlDocument (>= 4.3.0)
- System.Net.Http (>= 4.3.4)
Version | Downloads | Last updated |
---|---|---|
5.4.0 | 5 | 02/05/2025 |
5.3.4 | 16 | 09/13/2024 |
5.3.3 | 16 | 08/14/2024 |
5.3.2 | 17 | 05/02/2024 |
5.3.1 | 16 | 05/02/2024 |
5.2.8 | 17 | 02/10/2024 |
5.2.7 | 15 | 12/02/2023 |
5.2.6 | 12 | 11/20/2023 |
5.2.5 | 23 | 10/21/2023 |
5.2.4 | 21 | 09/08/2023 |
5.2.3 | 29 | 09/09/2023 |
5.2.2 | 19 | 07/12/2023 |
5.2.1 | 24 | 09/09/2023 |
5.2.0 | 21 | 06/21/2023 |
5.1.5 | 21 | 06/21/2023 |
5.1.4 | 24 | 06/07/2023 |
5.1.3 | 44 | 05/28/2023 |
5.1.2 | 28 | 06/21/2023 |
5.1.1 | 20 | 06/21/2023 |
5.1.0 | 46 | 05/28/2023 |
5.0.5 | 29 | 06/05/2023 |
5.0.4 | 22 | 09/08/2022 |
5.0.3 | 19 | 09/09/2022 |
5.0.2 | 31 | 09/10/2022 |
5.0.1 | 24 | 09/09/2022 |
5.0.0 | 28 | 09/09/2022 |
4.7.15 | 34 | 09/10/2022 |
4.7.14 | 28 | 09/08/2022 |
4.7.13 | 20 | 09/08/2022 |
4.7.12 | 22 | 09/10/2022 |
4.7.11 | 20 | 09/08/2022 |
4.7.10 | 25 | 09/14/2022 |
4.7.9 | 26 | 09/09/2022 |
4.7.8 | 49 | 09/09/2022 |
4.7.7 | 43 | 09/09/2022 |
4.7.6 | 22 | 09/08/2022 |
4.7.5 | 28 | 09/11/2022 |
4.7.4 | 31 | 09/10/2022 |
4.7.3 | 30 | 09/08/2022 |
4.7.2 | 35 | 09/08/2022 |
4.7.1 | 29 | 09/09/2022 |
4.7.0 | 29 | 09/09/2022 |
4.6.8 | 33 | 09/09/2022 |
4.6.7 | 20 | 09/10/2022 |
4.6.6 | 18 | 09/08/2022 |
4.6.5 | 19 | 09/08/2022 |
4.6.4 | 60 | 09/09/2022 |
4.6.3 | 50 | 09/08/2022 |
4.6.2 | 24 | 09/09/2022 |
4.6.1 | 31 | 09/11/2022 |
4.6.0 | 21 | 09/10/2022 |
4.5.11 | 21 | 09/09/2022 |
4.5.10 | 26 | 09/11/2022 |
4.5.9 | 46 | 09/09/2022 |
4.5.8 | 22 | 09/11/2022 |
4.5.7 | 22 | 09/09/2022 |
4.5.6 | 32 | 09/07/2022 |
4.5.5 | 25 | 09/08/2022 |
4.5.4 | 25 | 09/10/2022 |
4.5.3 | 37 | 09/09/2022 |
4.5.2 | 19 | 09/10/2022 |
4.5.1 | 19 | 09/10/2022 |
4.5.0 | 27 | 09/11/2022 |
4.4.13 | 30 | 09/11/2022 |
4.4.12 | 27 | 09/10/2022 |
4.4.11 | 15 | 09/11/2022 |
4.4.10 | 23 | 09/12/2022 |
4.4.9 | 23 | 09/10/2022 |
4.4.8 | 28 | 09/12/2022 |
4.4.7 | 20 | 09/09/2022 |
4.4.6 | 34 | 09/10/2022 |
4.4.5 | 48 | 09/09/2022 |
4.4.4 | 25 | 09/09/2022 |
4.4.3 | 24 | 09/08/2022 |
4.4.2 | 18 | 09/10/2022 |
4.4.1 | 15 | 09/10/2022 |
4.4.0 | 45 | 09/10/2022 |
4.3.11 | 22 | 09/08/2022 |
4.3.10 | 19 | 09/08/2022 |
4.3.9 | 19 | 09/10/2022 |
4.3.8 | 20 | 09/08/2022 |
4.3.7 | 31 | 09/10/2022 |
4.3.6 | 28 | 09/08/2022 |
4.3.5 | 20 | 09/10/2022 |
4.3.4 | 55 | 09/10/2022 |
4.3.3 | 19 | 09/09/2022 |
4.3.2 | 35 | 09/08/2022 |
4.3.1 | 18 | 09/10/2022 |
4.3.0 | 19 | 09/10/2022 |
4.2.3 | 40 | 09/09/2022 |
4.2.2 | 48 | 09/11/2022 |
4.2.1 | 16 | 09/11/2022 |
4.2.0 | 23 | 09/10/2022 |
4.1.2 | 24 | 09/11/2022 |
4.1.1 | 18 | 09/07/2022 |
4.1.0 | 52 | 09/09/2022 |
4.0.1 | 42 | 09/08/2022 |
4.0.0 | 32 | 09/09/2022 |
3.2.1 | 27 | 09/10/2022 |
3.2.0 | 24 | 09/09/2022 |
3.1.0 | 21 | 09/10/2022 |
3.0.0 | 40 | 09/08/2022 |
2.1.0 | 29 | 09/11/2022 |
2.0.1.2 | 21 | 09/09/2022 |
2.0.0.2000 | 36 | 09/10/2022 |
1.0.0.505 | 28 | 09/09/2022 |