title: memory handler of python logging module
body: <p>Anybody help me to add <a href="http://docs.python.org/library/logging.handlers.html" rel="nofollow">memory handlers, bufferinghandler</a> to make my program  optimal (to flush buffered memory).</p>
  
  <pre><code>import logging
  logger = logging.getLogger()
  logger.setLevel(logging.DEBUG)#we can set deug_level at logger level also
  
  formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
  
  ch = logging.StreamHandler()
  ch.setLevel(logging.DEBUG)
  ch.setFormatter(formatter)
  logger.addHandler(ch)
  
  logger.debug('This is a test log message.')
  </code></pre>