title: Dynamically change the log4net connection string
body: <p>I'm new to log4net and was given a task to Switch the way log4net gets the connectionstring.</p>
  
  <p>The connectionstring may be different for different groups of people who visits the site. i.e.
  company A has users who use the site and has its own db and therefore has its own logging table which log4net uses.</p>
  
  <p>We were currently using a connection string in a webconfig file.</p>
  
  <p>I created this code but doesn't work</p>
  
  <pre><code>MyNamspace
  {
       public class Log4NetAdoNetAppender :log4net.Appender.AdoNetAppender
       {
            public new string ConnectionString
            {
                  get { return base.ConnectionString; }
                  set
                  {                
                      base.ConnectionString = Service.GetConnectionString();
                  }
            }
       }
  }
  
  &lt;appender name="ADONetAppender" type="MyNamspace.Log4NetAdoNetAppender"&gt;
  </code></pre>