且构网

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

使用 xml 文件配置 log4net

更新时间:2023-10-31 23:24:58

当您在单独的配置文件中有 log4net 配置时,您不应包含配置和 configSections 元素.log4net 应该是 xml 声明之后的***元素.

When you have log4net config in a separate config file you should not include the configuration and configSections elements. log4net should be the top level element after the xml declartion.