title: Why doesn't my TimedRotatingFileHandler rotate at midnight?
body: <p>This is my config file:</p>
  
  <pre><code>[loggers]
  keys=root
  
  [handlers]
  keys=TimedRotatingFileHandler
  
  [formatters]
  keys=simpleFormatter
  
  [logger_root]
  level=DEBUG
  handlers=TimedRotatingFileHandler
  
  [handler_TimedRotatingFileHandler]
  class=handlers.TimedRotatingFileHandler
  level=DEBUG
  formatter=simpleFormatter
  args=('driver.log', 'midnight', 1, 30)
  
  [formatter_simpleFormatter]
  format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
  datefmt=
  </code></pre>
  
  <p>In my code I setup and use the logger like this:</p>
  
  <pre><code>import logging
  import logging.config
  
  logging.config.fileConfig('logging.conf')
  logging.info('Some message...')
  </code></pre>
  
  <p>Messages are logged to the file I specify (driver.log), but the rotations at midnight never happen.  </p>
  
  <p>Must the process be running at midnight for the rotation to occur?  This is a batch process that I run every 15 minutes and it is never actually running at midnight.</p>