title: Best practice to include log4Net external config file in ASP.NET
body: <p>I have seen at least two ways to include an external log4net config file in an ASP.NET web application:</p>
  
  <p>Having the following attribute in your AssemblyInfo.cs file:</p>
  
  <pre><code>[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log.config", Watch = true)]
  </code></pre>
  
  <p>Calling the XmlConfigurator in the Global.asax.cs:</p>
  
  <pre><code>protected void Application_Start()
  {
      XmlConfigurator.Configure(new FileInfo("Log.config"));
  }
  </code></pre>
  
  <p>What would be the best practice to do it?</p>