Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

Bumps [NLog](https://github.com/NLog/NLog) from 4.7.7 to 4.7.8.
- [Release notes](https://github.com/NLog/NLog/releases)
- [Changelog](https://github.com/NLog/NLog/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/NLog/NLog/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3ee66a4

Git stats

Files

Permalink
Failed to load latest commit information.

README.md

NLog

NLog.Extensions.Logging

NuGet Pre Release Build status

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

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

ASP.NET Core

.NET Core Console application

You can choose whether or not to use Dependency Injection when using NLog in a .NET Core Console application. If you don't want to use DI, you can just add the NLog NuGet package to your project, manually add an NLog.config file, follow this tutorial to GetCurrentClassLogger(), and use that for logging.

To use DI, you can use NLog in conjunction with Microsoft.Extensions.Logging by following the 'getting started' tutorial below.

Known issues

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

How to run the examples

How to run the dotnet-core-examples:

  1. Install dotnet: http://dot.net
  2. From source: dotnet run