更新时间:2023-11-11 12:22:52
我们遇到了问题,因为服务运行时目录为C:\Windows\System
或C:\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.