title: python2.7: logging configuration with yaml
body: <p>I'm trying to configure a logger from a yaml file. On docs.python.org I found an example of how to create a yaml file, and the file I created looks like this:</p>
  
  <pre><code>formatters:
      simpleFormater:
          format: '%(asctime)s - %(levelname)s: %(message)s'
          datefmt: '%Y/%m/%d %H:%M:%S'
  
  handlers:
      console:
          class: logging.StreamHandler
          formatter: simpleFormater
          level: DEBUG
          stream: ext://sys.stdout
      file:
          class : logging.FileHandler
          formatter: simpleFormater
          level: WARNING
          filename: songinfo.log
  
  loggers:
      clogger:
          level: DEBUG
          handlers: [console]
      flogger:
          level: WARNING
          handlers: [file]
  
  root:
      level: DEBUG
      handlers: [console, file]
  </code></pre>
  
  <p>But I can't find an example of how to load the config. I saw something about loading it with:</p>
  
  <pre><code>logging.config.dictConfig(yaml.load(open('logging.conf', 'r')))
  </code></pre>
  
  <p>but that throws a "ValueError: dictionary doesn't specify a version"</p>
  
  <p>So my question is: how do I load this to a logger in Python and how do I use clogger and flogger.</p>