且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Log4net和Windows服务.我还应该做些什么才能使这项工作

更新时间:2023-11-11 12:22:52

我们遇到了问题,因为服务运行时目录为C:\Windows\SystemC:\Windows\System32.因此,log4net.config必须位于您不希望的系统目录中,或者必须提供log4net.config文件的路径.

We had a problem because the services runtime directory is C:\Windows\System or C:\Windows\System32. Therefore the log4net.config has to be in your system dir which is not desirable or you have to provide the path to your log4net.config file.