title: Pyramid logging
body: <p>I have a pyramid application and I want the logs to got to stderr and stdout. stdout should be "INFO" level and below. stderr should be "WARN" and higher. How would I change my .ini file to do this? </p>
  
  <p>Currently I am logging like this, is this considered the correct way?</p>
  
  <pre>log = logger.getLogger(__name__)
  log.info("update ...")
  log.error("MAYDAY MAYDAY... BOOM!!!")</pre>
  
  <p>Currently I am using the default logging, which is this.</p>
  
  <pre>
  [loggers]
  keys = root, app
  
  [handlers]
  keys = console
  
  [formatters]
  keys = generic
  
  [logger_root]
  level = WARN
  handlers = console
  
  [logger_app]
  level = WARN
  handlers =
  qualname = app
  
  [handler_console]
  class = StreamHandler
  args = (sys.stderr,)                                                                                                                          
  85 level = NOTSET
  formatter = generic
  
  [formatter_generic]
  format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
  </pre>