我已经为日志创建了一个单独的控制台应用程序,然后将该单个控制台dll添加到多个应用程序进行日志记录。当我运行应用程序,它是记录良好,但也呈现出以下错误log4net:错误XmlConfigurator:无法在应用程序的配置文件中找到配置节'log4net'
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文件中的和元素。配置部分应如下所示:
有什么想法?
是,该DLL为日志配置不同的配置文件。 – 2012-04-04 12:00:12