title: Python logging file config KeyError: 'formatters'
body: <p>I'm currently working on a python project and I set up logging using a config file. It has already worked and was logging my messages as wanted.</p>
  
  <p>But then, after rearranging some of the packages and modules, I only get a key error.</p>
  
  <p>Full Traceback:</p>
  
  <pre><code>    Traceback (most recent call last):
    File "/Volumes/Daten/Eclipse/workspace/Carputer/src/pyboard/__init__.py", line 42, in &lt;module&gt;
      logging.config.fileConfig('../logging.conf', disable_existing_loggers=False)
    File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/logging/config.py", line 70, in fileConfig
      formatters = _create_formatters(cp)
    File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/logging/config.py", line 103, in _create_formatters
      flist = cp["formatters"]["keys"]
    File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/configparser.py", line 937, in __getitem__
      raise KeyError(key)
  KeyError: 'formatters'
  </code></pre>
  
  <p>Here is my logging file:</p>
  
  <pre><code>[loggers]
  keys=root,pyBoard
  
  [handlers]
  keys=consoleHandler
  
  [formatters]
  keys=detailedFormatter
  
  [logger_root]
  level=DEBUG
  handlers=consoleHandler
  
  [logger_pyBoard]
  level=DEBUG
  handlers=consoleHandler
  qualname=pyBoard
  propagate=0
  
  [handler_consoleHandler]
  class=StreamHandler
  level=DEBUG
  formatter=detailedFormatter
  args=(sys.stdout,)
  
  [formatter_detailedFormatter]
  format=%(asctime)s - %(name)s - %(levelname)s : Line %(lineno)s - %(message)s
  datefmt=
  </code></pre>
  
  <p>And the relevant code:</p>
  
  <pre><code>if __name__ == '__main__':
  
      logging.config.fileConfig('../logging.conf', disable_existing_loggers=False)
      logger = logging.getLogger(__name__)
  
      obc = Onboard_computer('/dev/ttys001')
      obc.run()
  </code></pre>
  
  <p>It is almost the same as from the <a href="https://docs.python.org/3.3/howto/logging.html#configuring-logging" rel="noreferrer">Python Logging Tutorial</a>.
  I really don't get why it is not working and it drives crazy. It worked, I changed nothing on the code nor on the setup, and it just stopped working and Python throws this KeyError.</p>
  
  <p>My setup: Mac OS X 10.9.2, Eclipse Kepler with PyDev and Python 3.3. I also tested it on a Raspberry Pi with Raspbian Wheezy and Python 3.2 and in Eclipse with Python 2.7 (same error).</p>
  
  <p>Does anyone of you guys have a clue?</p>