title: Python 2.4.3: ConfigParser.NoSectionError: No section: 'formatters'
body: <p>Trying to use a logging configuration file to implement <code>TimedRotatinigFileHandler</code>.</p>
  
  <p>Just won't take the config file for some reason.</p>
  
  <p>Any suggestions appreciated.</p>
  
  <hr>
  
  <p>x.py:</p>
  
  <pre><code>import logging
  import logging.config
  import logging.handlers
  
  logging.config.fileConfig("x.ini")
  
  MyLog = logging.getLogger('x')
  
  MyLog.debug('Starting') 
  </code></pre>
  
  <hr>
  
  <p>x.ini:</p>
  
  <pre><code>[loggers]
  keys=root
  
  [logger_root]
  level=NOTSET
  handlers=trfhand
  
  [handlers]
  keys=trfhand
  
  [handler_trfhand]
  class=handlers.TimedRotatingFileHandler
  when=M
  interval=1
  backupCount=11
  formatter=generic
  level=DEBUG
  args=('/var/log/x.log',)
  
  [formatters]
  keys=generic
  
  [formatter_generic]
  class=logging.Formatter
  format=%(asctime)s %(levelname)s %(message)s
  datefmt=
  </code></pre>
  
  <hr>
  
  <pre><code>Traceback (most recent call last):
    File "x.py", line 5, in ?
      logging.config.fileConfig("x.ini")
    File "/usr/lib/python2.4/logging/config.py", line 76, in fileConfig
      flist = cp.get("formatters", "keys")
    File "/usr/lib/python2.4/ConfigParser.py", line 511, in get
      raise NoSectionError(section)
  ConfigParser.NoSectionError: No section: 'formatters'
  </code></pre>
  
  <p>Thanks</p>