title: Displaying requests module logging messages whilst using a .yaml config file for logging module
body: <p>How might I display the <code>requests</code> module logging messages whilst using a .yaml file to configure the <code>logging</code> module?</p>
  
  <p>Previously I have used the following to display logging output from <code>requests</code>, but I'm now lost:</p>
  
  <pre><code>logging.basicConfig(
      level=logging.DEBUG,
      format="%(asctime)s - %(levelname)s - %(message)s")
  #logging.disable(logging.CRITICAL)
  </code></pre>
  
  <p>My .yaml file, which has replaced the above code:</p>
  
  <pre><code>version: 1
  disable_existing_loggers: False
  handlers:
    console:
      class: logging.StreamHandler
      stream: ext://sys.stderr
      formatter: basic
    audit_file:
      class: logging.FileHandler
      filename: bot_log.logging
      encoding: utf-8
      formatter: basic
  formatters:
    basic:
      style: "{"
      format: "{asctime:s} {levelname:s}: {name:s}: {message:s}"
      datefmt: "%Y-%m-%d %H:%M:%S"
  loggers:
    verbose:
      handlers: [console]
      level: DEBUG
      propagate: False
    audit:
      handlers: [audit_file]
      level: DEBUG
  root:
    handlers: [console]
    level: INFO
  </code></pre>
  
  <p>How I now load and configure the <code>logging</code> in my application:</p>
  
  <pre><code>if __name__ == "__main__":
      with LoggingConfig():
          with TradeHub() as th:
              th.run()
  </code></pre>