C#使用log4net记录本地日志

第一步:首先从Visual Studio中的Nuget包管理中搜索下载 Log4Net dll文件 如下图:         选择安装的项目(哪个类库中需要记录日志就勾选上)    第二步:打开配置文件 WinFrom就是 App.config Web就是 web.config 将以下配置信息加入 <configSections> <section name="log4net" type="lo
相关文章
相关标签/搜索