title: Python logging wont shutdown
body: <p>I have been learning the python logging module but have been having problems getting the logging to shutdown after it's done. Here is an example -</p>
  
  <pre><code>import logging
  
  log = logging.getLogger()
  log.setLevel(logging.INFO)
  handler = logging.FileHandler('test.log')
  handler.setLevel(logging.INFO)
  formatter = logging.Formatter(
              fmt='%(asctime)s %(levelname)s: %(message)s',
              datefmt='%Y-%m-%d %H:%M:%S'
              )
  handler.setFormatter(formatter)
  log.addHandler(handler)
  
  log.info('log file is open')  
  logging.shutdown()
  log.info('log file should be closed')
  </code></pre>
  
  <p>But the module is stilling logging after the logging.shutdown() as the log file looks like this -</p>
  
  <pre><code># cat test.log
  2014-07-17 19:39:35 INFO: log file is open
  2014-07-17 19:39:35 INFO: log file should be closed
  </code></pre>
  
  <p>According to the documentation this command should "perform an orderly shutdown by flushing and closing all handlers". Should I be doing something else to close the log file ?  </p>