GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NLog/NLog.Extensions.Logging: NLog as Logging Provider for Microsoft Extension Logging

BranchesTags
Open more actions menu

Latest commit

 

History

845 Commits
845 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
examples
examples
 
 
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CHANGELOG.MD
CHANGELOG.MD
 
 
LICENSE
LICENSE
 
 
NLog.Extensions.Logging.sln.DotSettings
NLog.Extensions.Logging.sln.DotSettings
 
 
NLog.Extensions.Logging.slnx
NLog.Extensions.Logging.slnx
 
 
README.md
README.md
 
 
codecov.yml
codecov.yml
 
 

Repository files navigation

NLog

NLog.Extensions.Logging & NLog.Extensions.Hosting

NuGet Release

NuGet Release

CI codecov

NLog.Extensions.Logging

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

  • Introduces AddNLog() extension methods to register NLog as LoggingProvider for Microsoft Extension Logging.
  • Capture structured message properties from the Microsoft ILogger
  • Capture scope context properties from the Microsoft ILogger BeginScope
  • Introduces ${configsetting} for doing lookup of appsettings.json configuration settings.
  • Adds support for loading NLog Configuration from appsettings.json

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:

  • Getting started for .NET Core Console application
  • Getting started for ASP.NET Core
  • How to use structured logging

About

NLog as Logging Provider for Microsoft Extension Logging

nlog-project.org

Topics

csharpdotnetloggerlogginglogging-librarymicrosoft-extensions-loggingnetcorenetstandardnlogstructured-logging

Resources

Readme
BSD-2-Clause license
Activity
Custom properties

Stars

404 stars

Watchers

20 watching

Forks

149 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.