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


Keywords
Microsoft.Extensions.Logging, NLog, log, logfiles, logging, netcore, csharp, dotnet, logger, logging-library, net-core, netstandard
License
BSD-2-Clause
Install
Install-Package NLog.Extensions.Logging -Version 5.3.8

Documentation

NLog

NLog.Extensions.Logging & NLog.Extensions.Hosting

NuGet Release

NuGet Release

Build status

NLog.Extensions.Logging

NLog.Extensions.Logging makes it possible to use NLog together with 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 add NLog.config file to the project, and follow the tutorial for using GetCurrentClassLogger().

NLog.Extensions.Hosting

NLog.Extensions.Hosting only introduces UseNLog() as extension-method for the IHostBuilder.

Note if using ASP.NET Core then instead install NLog.Web.AspNetCore.

Getting Started Tutorials: