title: Python Logger not working
body: <p>I try to use logging in Python to write some log, but strangely, only the <code>error</code> will be logged, the <code>info</code> will be ignored no matter whichn level I set.</p>
  
  <p>code:</p>
  
  <pre><code>import logging
  import logging.handlers
  
  if __name__ == "__main__":
      logger = logging.getLogger()
      fh = logging.handlers.RotatingFileHandler('./logtest.log', maxBytes=10240, backupCount=5)
      fh.setLevel(logging.DEBUG)#no matter what level I set here
      formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
      fh.setFormatter(formatter)
      logger.addHandler(fh)
      logger.info('INFO')
      logger.error('ERROR')
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>2014-01-14 11:47:38,990 - root - ERROR - ERROR
  </code></pre>
  
  <p>According to <a href="http://docs.python.org/2/library/logging.html#logging-levels" rel="noreferrer">http://docs.python.org/2/library/logging.html#logging-levels</a></p>
  
  <p>The <code>INFO</code> should be logged too.</p>