NLog/NLog.Extensions.Logging
소개
Microsoft Extension Logging의 로깅 공급자로 사용하는 NLog입니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
NLog.Extensions.Logging & NLog.Extensions.Hosting
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:
관련 프로젝트 살펴보기
불러오는 중…