title: Does python logging flush every log?
body: <p>When I write a log to file using the standard module <strong>logging</strong>, will each log be flushed to disk separately?
  For example, will the following code flush log by 10 times?</p>
  
  <pre><code>logging.basicConfig(level=logging.DEBUG, filename='debug.log')
      for i in xrange(10):
          logging.debug("test")
  </code></pre>
  
  <p>if so, will it slow down ?</p>