title: Log4Net - Can I have a custom section name in Config
body: <p>I have a need to use section name other than log4net in the config section. I know this is what we generally use</p>
  
  <pre><code>&lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /&gt;
  </code></pre>
  
  <p>But I need to have a section like this</p>
  
  <pre><code>&lt;section name="log2net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /&gt;
  </code></pre>
  
  <p>I am working on a sitecore website and it has its own Sitecore.Logging dll which is also derived from log4net. So the Sitecore Logging dll is referring to section log4net in web.config</p>
  
  <p>We have our custom log4net appender that works only with log4net and not with sitecore.logging dll. So I thought I can have two loggers in my project, sitecore.logger and log4net logger. Sitecore.logger uses log4net section so I wanted log4net to use a different section anme like log2net</p>
  
  <p>I tried to use the below code by having log2net section in config. </p>
  
  <p>But I get the error log4net:ERROR XmlHierarchyConfigurator: Xml element is - not a log4net element.</p>
  
  <pre><code> XmlElement element = (XmlElement)ConfigurationManager.GetSection("log2net");
          log4net.Config.XmlConfigurator.Configure(element); 
  </code></pre>
  
  <p>Can anyone help please.</p>