概要
Microsoft Extension Logging のログプロバイダーとして NLog を使用できます。
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
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:
関連プロジェクトを探す
読み込み中…