NLog provider for Microsoft's logging for .NET Core class libaries and console applications
C# PowerShell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

NLog.Extensions.Logging

NuGet Pre Release Build status Windows Build Status Linux

BCH compliance

NLog provider for Microsoft.Extensions.Logging; .NET Core. ASP.NET Core users should install NLog.Web.AspNetCore.

Routes .NET Core log messages to NLog.

Note: Microsoft haven't ported all their classes to .NET standard, so not every target/layout renderer is available. Please check platform support

Getting started

Known issues

  • auto load of NLog extensions won't work yet. Use <extensions> (see below)

How to run the example (aspnet-core-example)

How to run the aspnet-core-examples:

  1. Install dotnet: http://dot.net
  2. From source: dotnet run
  3. or, after publish: dotnet aspnet-core-example.dll