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 with ASP.NET Core 2
- Getting started with .NET Core 2 Console application
- Getting started with ASP.NET Core 1 (csproj - vs2017)
- Getting Started with ASP.NET Core 1 (project.json - vs2015)
- Multiple blogs to get started with ASP.NET Core and NLog
- Installing the NuGet packages NLog.config / NLog.schema won't add to your project. It's recommend to extract (unzip) the NLog.Schema package and place the NLog.XSD in the same folder as NLog.config.
- auto load of NLog extensions won't work yet. Use
<extensions>
(see below)
How to run the aspnet-core-examples:
- Install dotnet: http://dot.net
- From source:
dotnet run
- or, after publish:
dotnet aspnet-core-example.dll