【发布时间】:2016-03-31 10:07:28
【问题描述】:
我想将软件进程日志记录到文件中。我没有制作自己的日志系统,而是尝试将 Log4Net 与 ASP.NET MVC 一起使用,但在 Visual Studio 2015 中设置它时遇到了问题,例如:
如何设置 web.config / Global.asax 页面?
如何在VS 2012中安装组件~?
如何在我的
*.cs文件中使用它?
在 Visual Studio 2015 中使用 ASP.NET MVC C# 正确配置 Log4Net 的步骤是什么?
我还写了一个问答来为 ASP.NET WebForms 设置它, 见How to use Log4net from Nuget with Visual Studio platform in the ASP.NET Web Form (Easy method)。
【问题讨论】:
标签: c# asp.net-mvc visual-studio asp.net-web-api log4net