C#使用log4net記錄本地日誌

第一步:首先從Visual Studio中的Nuget包管理中搜索下載 Log4Net dll文件 如下圖:         選擇安裝的項目(哪個類庫中需要記錄日誌就勾選上)    第二步:打開配置文件 WinFrom就是 App.config Web就是 web.config 將以下配置信息加入 <configSections> <section name="log4net" type="lo
相關文章
相關標籤/搜索