NLog/NLog.Extensions.Logging
Tentang
NLog sebagai penyedia logging untuk Microsoft Extension Logging
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +2
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
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:
Jelajahi proyek terkait
Memuat…