[鐵人賽 Day19] ASP.NET Core 2 系列 - NLog & Log4net
![[鐵人賽 Day19] ASP.NET Core 2 系列 - NLog & Log4net](/images/ironman/i19-1.png)
ASP.NET Core 提供的 Logging API,不僅可以方便調用 Logger,且支援多種 Log 輸出,也能把 Log 發送到多個地方,並支援第三方的 Logging Framework 套件。
本篇將介紹 ASP.NET Core 的 Logging 搭配第三方 Logging Framework 套件,NLog 及 Log4net 的範例。
iT 邦幫忙 2018 鐵人賽 - Modern Web 組參賽文章:
[Day19] ASP.NET Core 2 系列 - NLog & Log4net
![[鐵人賽 Day17] ASP.NET Core 2 系列 - 例外處理 (Exception Handler)](/images/a/206.png)
![[鐵人賽 Day15] ASP.NET Core 2 系列 - 組態設定 (Configuration)](/images/ironman/i15-2.png)
![[鐵人賽 Day13] ASP.NET Core 2 系列 - Web API 文件產生器 (Swagger)](/images/ironman/i13-1.png)
![[鐵人賽 Day11] ASP.NET Core 2 系列 - Cookies & Session](/images/ironman/i11-1.png)
![[鐵人賽 Day18] ASP.NET Core 2 系列 - Logging](/images/ironman/i18-1.png)
![[鐵人賽 Day16] ASP.NET Core 2 系列 - 多重環境組態管理 (Multiple Environments)](/images/ironman/i16-3.png)
![[鐵人賽 Day14] ASP.NET Core 2 系列 - Filters](/images/a/198.png)
![[鐵人賽 Day12] ASP.NET Core 2 系列 - REST-Like API](/images/ironman/i12-1.png)
![[鐵人賽 Day10] ASP.NET Core 2 系列 - Views](/images/ironman/i10-1.png)