title: Flush Log4Net buffer with AdoNetAppender
body: <p>I'M using Log4Net with AdoNetAppender, and I like to flush buffer in particular time, or time period.</p>
  
  <p>May be I'M not wrong, Log4Net do not provide this functionality and for that I have to create my own Appender, but I have no idea or may be I am confuse how to implement this.</p>
  
  <p>Can anyone help me with this?</p>
  
  <p>For flush I am suppose to use following code but it do not have time or timeout functionality.</p>
  
  <pre><code>    public void FlushBuffers()
      {
          ILoggerRepository rep = LogManager.GetRepository();
          foreach (IAppender appender in rep.GetAppenders())
          {
              var buffered = appender as BufferingAppenderSkeleton;
              if (buffered != null)
              {
                  buffered.Flush();
              }
          }
      }
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Log4Net is implemented in Asp.Net website, and I need to flush this throw the site.</p>
  
  <p>May be I can create Thread which execute code block in every 2 hours and flush the buffer.</p>