.N .NET Landscape

NLog.Extensions.Logging

Observability
github.com/NLog/NLog.Extensions.Logging

NLog as Logging Provider for Microsoft Extension Logging

csharpdotnetloggerlogginglogging-librarymicrosoft-extensions-loggingnetcorenetstandardnlogstructured-logging
GitHub stars
403
Forks
149
Open issues
5
NuGet downloads
259,633,830
latest 6.2.2
License
BSD-2-Clause
Language
C#
Last push
today
24 Oct 2026
Created
19 Jan 2016

NLog

NLog.Extensions.Logging & NLog.Extensions.Hosting

NuGet Release

NuGet Release

CI

NLog.Extensions.Logging

NLog.Extensions.Logging enables NLog as Logging Provider for Microsoft ILogger-abstraction and Dependency Injection.

Notice the standard NLog NuGet package is enough for using NLog Logger with simple console application on the .NET Core platform. Just configure NLog using Fluent Setup API or add NLog.config file to the project, and follow the tutorial for using GetCurrentClassLogger().

NLog.Extensions.Hosting

NLog.Extensions.Hosting introduces UseNLog() as extension-method for the application HostBuilder, and includes the layoutrenderers ${host-rootdir} + ${host-environment} + ${host-appname}.

Note for ASP.NET Core use NLog.Web.AspNetCore.

Getting Started Tutorials: