![]() |
VOOZH | about |
dotnet add package NLog --version 6.1.3
NuGet\Install-Package NLog -Version 6.1.3
<PackageReference Include="NLog" Version="6.1.3" />
<PackageVersion Include="NLog" Version="6.1.3" />Directory.Packages.props
<PackageReference Include="NLog" />Project file
paket add NLog --version 6.1.3
#r "nuget: NLog, 6.1.3"
#:package NLog@6.1.3
#addin nuget:?package=NLog&version=6.1.3Install as a Cake Addin
#tool nuget:?package=NLog&version=6.1.3Install as a Cake Tool
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 6, 7, 8, 9 and 10
- .NET Standard 2.0 and 2.1
- .NET Framework 3.5 - 4.8
- Xamarin Android + iOS (.NET Standard)
- Mono 4
For integrating NLog with Microsoft.Extensions.Logging, check: NLog.Extensions.Logging
For using NLog with ASP.NET Core, check: NLog.Web.AspNetCore
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net35 net35 is compatible. net40 net40 was computed. net403 net403 was computed. net45 net45 is compatible. net451 net451 was computed. net452 net452 was computed. net46 net46 is compatible. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on NLog:
| Package | Downloads |
|---|---|
|
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 |
|
|
NLog.Config
NLog.config file to get started with configuring NLog. This package is not mandatory to get started with NLog: the configuration file can created manually (read specs here: https://github.com/NLog/NLog/wiki/Configuration-file) or the configuration can be created programmatically. (read more here: https://github.com/NLog/NLog/wiki/Configuration-API) Note: Unfortunately this package won't work well when using <PackageReference> Advised to: - download manually: https://raw.githubusercontent.com/NLog/NLog/v4.4/src/NuGet/NLog.Config/content/NLog.config - set "Copy To Output Directory" to "Copy if newer" |
|
|
Microsoft.ApplicationInsights.NLogTarget
Application Insights NLog Target is a custom target allowing you to send NLog log messages to Application Insights. Application Insights will collect your logs from multiple sources and provide rich powerful search capabilities. Privacy statement: https://go.microsoft.com/fwlink/?LinkId=512156 |
|
|
NLog.Web
NLog logging for ASP.NET and ASP.NET MVC. Includes targets and layout renderers for websites and web applications. This package is for ASP.NET 3.5+ For ASP.NET Core: Check https://www.nuget.org/packages/NLog.Web.AspNetCore |
|
|
AWS.Logger.NLog
An AWS NLog target that records logging messages to Amazon CloudWatch Logs. |
Showing the top 20 popular GitHub repositories that depend on NLog:
| Repository | Stars |
|---|---|
|
2dust/v2rayN
A GUI client for Windows, Linux and macOS, support Xray and sing-box and others
|
|
|
shadowsocks/shadowsocks-windows
A C# port of shadowsocks
|
|
|
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
|
|
|
rocksdanister/lively
Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3.
|
|
|
Jackett/Jackett
API Support for your favorite torrent trackers
|
|
|
Flow-Launcher/Flow.Launcher
:mag: Quick file search & app launcher for Windows with community-made plugins
|
|
|
srwi/EverythingToolbar
Everything integration for the Windows taskbar.
|
|
|
Sonarr/Sonarr
Smart PVR for newsgroup and bittorrent users.
|
|
|
Radarr/Radarr
Movie organizer/manager for usenet and torrent users.
|
|
|
JosefNemec/Playnite
Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
|
|
|
AutoDarkMode/Windows-Auto-Night-Mode
Automatically switches between the dark and light theme of Windows 10 and Windows 11
|
|
|
LykosAI/StabilityMatrix
Multi-Platform Package Manager for Stable Diffusion
|
|
|
Richasy/Bili.Uwp
适用于新系统UI的哔哩
|
|
|
Prowlarr/Prowlarr
Prowlarr is an indexer manager/proxy built on the popular *arr .net/reactjs base stack to integrate with your various PVR apps, supporting management of both Torrent Trackers and Usenet Indexers.
|
|
|
Facepunch/sbox-public
s&box is a modern game engine, built on Valve's Source 2 and the latest .NET technology, it provides a modern intuitive editor for creating games
|
|
|
canton7/SyncTrayzor
Windows tray utility / filesystem watcher / launcher for Syncthing
|
|
|
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
|
|
|
Lidarr/Lidarr
Looks and smells like Sonarr but made for music.
|
|
|
Azure/azure-powershell
Microsoft Azure PowerShell
|
|
|
focus-creative-games/luban
luban是一个强大、易用、优雅、稳定的游戏配置解决方案。luban is a powerful, easy-to-use, elegant and stable game configuration solution.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 6.1.3 | 1,173,352 | 5/4/2026 |
| 6.1.2 | 871,854 | 4/1/2026 |
| 6.1.1 | 2,266,769 | 2/28/2026 |
| 6.1.0 | 1,405,799 | 1/31/2026 |
| 6.0.7 | 2,114,039 | 12/9/2025 |
| 6.0.6 | 2,658,598 | 11/9/2025 |
| 6.0.5 | 1,639,284 | 10/9/2025 |
| 6.0.4 | 1,399,754 | 9/11/2025 |
| 6.0.3 | 2,784,869 | 8/10/2025 |
| 6.0.2 | 1,287,466 | 7/20/2025 |
| 6.0.1 | 1,055,160 | 6/27/2025 |
| 6.0.0 | 788,355 | 6/21/2025 |
| 5.5.1 | 3,300,184 | 7/18/2025 |
| 5.5.0 | 4,837,193 | 5/29/2025 |
| 5.4.0 | 15,709,410 | 2/2/2025 |
Changelog:
- [#6168] PropertiesDictionary - Preserve MessageTemplate property details when adding extra properties. (@snakefoot)
- [#6149] LoggingRule - Updating FinalMinLevel should also update MinLevel when same LogLevel. (@snakefoot)
- [#6165] AsyncTaskTarget - Retry with help from Task.Delay. (@snakefoot)
- [#6164] DateLayoutRenderer - UniversalTime = false should only convert to local when UTC. (@snakefoot)
- [#6138] SimpleLayout skip Precalculate when INoAllocationStringValueRenderer available. (@reabr)
- [#6158] TemplateEnumerator - Optimize ParseTextPart by direct calling IndexOfAny. (@snakefoot)
- [#6152] TemplateEnumerator - Optimize parsing of single digit holename. (@snakefoot)
- [#6142] InternalLogger - Skip allocating params array when no exception. (@snakefoot)
- [#6145] InternalLogger - Handle Exception ToString can throw with AOT. (@snakefoot)
- [#6154] ColoredConsoleTarget - Optimize Console Coloring for Word Highlight. (@snakefoot)
- [#6159] ColoredConsoleTarget - Reset capture of previous colors after ResetDefaultColors. (@snakefoot)
- [#6140] TryParseEnum - Apply Enum.TryParse since better for AOT. (@snakefoot)
- [#6143] Fixed various issues reported by EnableNETAnalyzers. (@snakefoot)
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/