title: python configuring logging via yaml file
body: <p>I'm trying to configure logging for my app using a yaml file and <code>logging.config.dictConfig</code>, it's not really working, I don't think the configuration is being taken by the <code>logging</code>. </p>
  
  <p>here's my yaml file: </p>
  
  <pre><code>  version: 1
    logging:
      disable_existing_loggers: true
      formatters:
        multi-process:
          class: logging.Formatter
          style:
          datefmt: "%I:%M:%S"
          format: "{levelname:8s}; {process:5d}; {asctime:s}; {name:&lt;15s} {lineno:4d}; {message:s}"
        multi-thread:
          class: logging.Formatter
          style:
          datefmt: "%I:%M:%S"
          format: "{levelname:8s}; {threadName:5d}; {asctime:s}; {name:&lt;15s} {lineno:4d}; {message:s}"
        verbose:
          class: logging.Formatter
          style:
          datefmt: "%I:%M:%S"
          format: "{levelname:8s}; {process:5d}; {threadName:8s}; {asctime:s}; {name:&lt;15s} {lineno:4d}; {message:s}"
      handlers:
        console:
          level: DEBUG
          class: logging.StreamHandler
          formatter: verbose
          stream: ext://sys.stdout
        file_handler:
          level: INFO
          class: logging.handlers.WatchedFileHandler
          formatter: verbose
          filename: backtest.log
          mode: a
          encoding: utf-8
      loggers:
        example:
          level: DEBUG
          handlers: 
            - console
      root:
        handlers:
          - console
        level: DEBUG
  </code></pre>
  
  <p>here's how I load it: </p>
  
  <pre><code>with open('logging.yaml', 'r') as stream:
      yamld = yaml.load(stream)
      logging.config.dictConfig(yamld)
  
  logger = logging.getLogger("example")
  
  logger.debug('debug message')
  logger.info('info message')
  logger.warn('warn message')
  logger.error('error message')
  logger.critical('critical message')
  </code></pre>
  
  <p>this is my output to console: </p>
  
  <pre><code>warn message
  error message
  critical message
  </code></pre>
  
  <p>it's like my configurations aren't loaded at all</p>