我已经创建了一个独立的控制台应用程序来记录日志,然后将这个单一的控制台dll添加到多个应用程序中进行记录。当我运行应用程序时,它能够成功记录日志,但也会显示以下错误信息:
log4net:ERROR XmlConfigurator: Failed to find configuration section 'log4net' in the application's .config file. Check your .config file for the <log4net> and <configSections> elements. The configuration section should look like: <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
log4net:ERROR XmlConfigurator:在应用程序的.config文件中找不到配置部分'log4net'。检查您的.config文件中的和元素。配置部分应该如下所示:
有什么想法吗?