C#如何使用log4net記錄本地日誌

第一步:首先從Visual Studio中的Nuget包管理中搜索下載 Log4Net dll文件 如下圖: 第二步:打開配置文件 WinFrom就是 App.config Web就是 web.config 將以下配置信息加入 <configSections>  <section name="log4net" type="log4net.Config.Log4NetConfigurationSec
相關文章
相關標籤/搜索