NLog
4.5.6
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 Framework 3.5, 4, 4.5, 4.6 & 4.7
- .NET Standard 1.3+ and 2.0+;
- .NET Framework 4 client profile
- Xamarin Android, Xamarin iOs
- UWP
- Windows Phone 8
- Silverlight 4 and 5
- Mono 4
For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
See the version list below for details.
Install-Package NLog -Version 4.5.6
dotnet add package NLog --version 4.5.6
<PackageReference Include="NLog" Version="4.5.6" />
paket add NLog --version 4.5.6
Getting started with NLog
- Getting started for .NET
- Getting started for ASP.NET Core 2
- Getting started for .NET Core 2 Console application
- Getting started for ASP.NET Core 1 (csproj - vs2017)
- How to use structured logging
Troubleshooting
Getting started with NLog
- Getting started for .NET
- Getting started for ASP.NET Core 2
- Getting started for .NET Core 2 Console application
- Getting started for ASP.NET Core 1 (csproj - vs2017)
- How to use structured logging
Troubleshooting
Release Notes
## Fixes
- JsonSerializer - Generate valid Json when hitting the MaxRecursionLimit (@snakefoot)
- Fixup for NLog.WindowsEventLog package: https://www.nuget.org/packages/NLog.WindowsEventLog
## Enhancements
- FileTarget - Improve support for Linux FileSystem without BirthTime (@snakefoot)
## Performance
- LogEventInfo - HasProperties should allocate PropertiesDicitonary when needed (@snakefoot)
- JsonLayout - Reduce allocations when needing to escape string (44% time improvement) (@snakefoot)
Full changelog: https://github.com/NLog/NLog/blob/master/CHANGELOG.md
Supported for each platform: https://github.com/NLog/NLog/wiki/platform-support
Dependencies
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0 Client
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETStandard 1.3
- Microsoft.Extensions.PlatformAbstractions (>= 1.0.0)
- NETStandard.Library (>= 1.6.0)
- System.Collections.NonGeneric (>= 4.0.1)
- System.ComponentModel.Primitives (>= 4.1.0)
- System.Data.Common (>= 4.1.0)
- System.Diagnostics.StackTrace (>= 4.0.1)
- System.Net.NameResolution (>= 4.0.0)
- System.Net.Requests (>= 4.0.11)
- System.Reflection.TypeExtensions (>= 4.1.0)
- System.Xml.XmlDocument (>= 4.0.1)
-
.NETStandard 1.5
- NETStandard.Library (>= 1.6.0)
- System.ComponentModel.Primitives (>= 4.1.0)
- System.ComponentModel.TypeConverter (>= 4.1.0)
- System.Data.Common (>= 4.1.0)
- System.Diagnostics.Process (>= 4.1.0)
- System.Diagnostics.StackTrace (>= 4.0.1)
- System.Diagnostics.TraceSource (>= 4.0.0)
- System.IO.FileSystem.Watcher (>= 4.0.0)
- System.Net.NameResolution (>= 4.0.0)
- System.Net.Requests (>= 4.0.11)
- System.Reflection.TypeExtensions (>= 4.1.0)
- System.Runtime.Loader (>= 4.0.0)
- System.Threading.Thread (>= 4.0.0)
- System.Xml.XmlDocument (>= 4.0.1)
-
.NETStandard 2.0
- No dependencies.
-
MonoAndroid 4.4
- No dependencies.
-
Silverlight 4.0
- No dependencies.
-
Silverlight 5.0
- No dependencies.
-
WindowsPhone 8.0
- No dependencies.
-
Xamarin.iOS 1.0
- No dependencies.
GitHub Usage
Showing the top 10 GitHub repositories that depend on NLog:
| Repository | Stars | |
|---|---|---|
|
Wox-launcher/Wox
Launcher for Windows, an alternative to Alfred and Launchy.
|
||
|
aspnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
||
|
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
|
||
|
Sonarr/Sonarr
Smart PVR for newsgroup and bittorrent users.
|
||
|
JustArchiNET/ArchiSteamFarm
C# application with primary purpose of idling Steam cards from multiple accounts simultaneously.
|
||
|
EventStore/EventStore
The stream database optimised for event sourcing
|
||
|
Radarr/Radarr
A fork of Sonarr to work with movies à la Couchpotato.
|
||
|
Jackett/Jackett
API Support for your favorite torrent trackers.
|
||
|
Topshelf/Topshelf
An easy service hosting framework for building Windows services using .NET
|
||
|
dotnetcore/Util
Util是一个.net core平台下的应用框架,旨在提升小型团队的开发输出能力,由常用公共操作类(工具类)、分层架构基类、Ui组件,第三方组件封装,第三方业务接口封装,配套代码生成模板,权限等组成。
|
Version History
| Version | Downloads | Last updated | ||
|---|---|---|---|---|
| 4.6.7 | 119,992 | 8/25/2019 | ||
| 4.6.6 | 326,290 | 7/14/2019 | ||
| 4.6.5 | 396,823 | 6/14/2019 | ||
| 4.6.4 | 445,653 | 5/28/2019 | ||
| 4.6.3 | 506,828 | 4/30/2019 | ||
| 4.6.2 | 435,946 | 4/2/2019 | ||
| 4.6.1 | 61,166 | 3/29/2019 | ||
| 4.6.0 | 179,344 | 3/21/2019 | ||
| 4.5.11 | 2,803,974 | 11/6/2018 | ||
| 4.5.10 | 1,807,621 | 9/17/2018 | ||
| 4.5.9 | 554,854 | 8/24/2018 | ||
| 4.5.8 | 803,000 | 8/5/2018 | ||
| 4.5.7 | 395,579 | 7/19/2018 | ||
| 4.5.6 | 1,148,178 | 5/29/2018 | ||
| 4.5.5 | 290,485 | 5/25/2018 | ||
| 4.5.4 | 919,351 | 5/5/2018 | ||
| 4.5.3 | 521,240 | 4/16/2018 | ||
| 4.5.2 | 35,271 | 4/6/2018 | ||
| 4.5.1 | 126,000 | 4/3/2018 | ||
| 4.5.0 | 1,116,394 | 3/25/2018 | ||
| 4.4.13 | 364,221 | 2/27/2018 | ||
| 4.4.12 | 2,831,844 | 8/8/2017 | ||
| 4.4.11 | 1,556,057 | 6/17/2017 | ||
| 4.4.10 | 229,790 | 5/31/2017 | ||
| 4.4.9 | 551,305 | 5/5/2017 | ||
| 4.4.8 | 90,027 | 4/28/2017 | ||
| 4.4.7 | 67,847 | 4/25/2017 | ||
| 4.4.6 | 174,072 | 4/15/2017 | ||
| 4.4.5 | 261,818 | 3/28/2017 | ||
| 4.4.4 | 279,745 | 3/10/2017 | ||
| 4.4.3 | 417,822 | 2/17/2017 | ||
| 4.4.2 | 214,793 | 2/6/2017 | ||
| 4.4.1 | 620,366 | 12/24/2016 | ||
| 4.4.0 | 184,919 | 12/14/2016 | ||
| 4.3.11 | 597,643 | 11/7/2016 | ||
| 4.3.10 | 384,386 | 10/11/2016 | ||
| 4.3.9 | 314,559 | 9/18/2016 | ||
| 4.3.8 | 384,548 | 9/5/2016 | ||
| 4.3.7 | 369,544 | 8/6/2016 | ||
| 4.3.6 | 180,276 | 7/23/2016 | ||
| 4.3.5 | 559,415 | 6/12/2016 | ||
| 4.3.4 | 457,509 | 5/16/2016 | ||
| 4.3.3 | 195,130 | 4/28/2016 | ||
| 4.3.2 | 59,986 | 4/26/2016 | ||
| 4.3.1 | 75,796 | 4/20/2016 | ||
| 4.3.0 | 64,594 | 4/16/2016 | ||
| 4.2.3 | 899,030 | 12/20/2015 | ||
| 4.2.2 | 164,586 | 12/2/2015 | ||
| 4.2.1 | 108,435 | 11/21/2015 | ||
| 4.2.0 | 256,015 | 10/24/2015 | ||
| 4.1.2 | 442,496 | 9/20/2015 | ||
| 4.1.1 | 77,574 | 9/12/2015 | ||
| 4.1.0 | 125,852 | 8/31/2015 | ||
| 4.0.1 | 472,407 | 6/18/2015 | ||
| 4.0.0 | 379,741 | 6/9/2015 | ||
| 3.2.1 | 460,278 | 4/24/2015 | ||
| 3.2.0 | 866,626 | 1/2/2015 | ||
| 3.1.0 | 891,827 | 6/24/2014 | ||
| 3.0.0 | 138,833 | 6/2/2014 | ||
| 2.1.0 | 749,684 | 10/10/2013 | ||
| 2.0.1.2 | 446,053 | 4/8/2013 | ||
| 2.0.0.2000 | 697,214 | 7/18/2011 | ||
| 1.0.0.505 | 134,664 | 1/7/2011 |