title: python logging specific level only
body: <p>I'm logging events in my python code uing the python logging module. I have 2 logging files I wish to log too, one to contain user information and the other a more detailed log file for devs. I've set the the two logging files to the levels I want (usr.log = INFO and dev.log = ERROR) but cant work out how to restrict the logging to the usr.log file so only the INFO level logs are written to the log file as opposed to INFO plus everthing else above it e.g. INFO, WARNING, ERROR and CRITICAL.</p>
  
  <p>This is basically my code:-</p>
  
  <pre><code>import logging
  
  logger1 = logging.getLogger('')
  logger1.addHandler(logging.FileHandler('/home/tmp/usr.log')
  logger1.setLevel(logging.INFO)
  logger2 = logging.getLogger('')
  logger2.addHandler(logging.FileHandler('/home/tmp/dev.log')
  logger2.setLevel(logging.ERROR)
  
  logging.critical('this to be logged in dev.log only')
  logging.info('this to be logged to usr.log and dev.log')
  logging.warning('this to be logged to dev.log only')
  </code></pre>
  
  <p>Any help would be great thank you.</p>