Add a line to your app.config in the configSections element
<configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821" /> </configSections>
Then add the log4Net section, but delegate it to the log4Net configuration file elsewhere ...
<log4net configSource="Config\Log4Net.config" />
In the application code, when you create a log, write
private static ILog GetLog(string logName) { ILog log = LogManager.GetLogger(logName); return log; }
Charles Bretana Dec 16 '08 at 21:13 2008-12-16 21:13
source share