title: Getting Django Logger to Create a Log File for Me
body: <p>I have my logger setup as thus:</p>
  
  <pre><code>...'handlers': {
      # with debug on, print log messages to the console
      'console': {
          'level': 'DEBUG',  # error message level
          'filters': ['require_debug_true'],  # choose filter
          'class': 'logging.StreamHandler',  # iostreams
          'formatter': 'verbose'  # format of messages
      },
      # with debug on, log messages in dev file
      'development_logfile': {
          'level': 'DEBUG',
          'filters': ['require_debug_true'],
          'class': 'logging.FileHandler',  # open and close files
          'filename': '/Users/Michael/venvs/wabi/wabi_clean/dev.log'),
          'formatter': 'verbose'
      },
      # with debug off, log messages in prod file
      'production_logfile': {
          'level': 'ERROR',
          'filters': ['require_debug_false'],
          'class': 'logging.handlers.RotatingFileHandler',  # have file backups
          'filename': os.path.join(BASE_DIR, 'prod.log'),
          'maxBytes': 1024*1024*100,  # 100MB (max file size)
          'backupCount': 5,  # number of backup files
          'formatter': 'simple'
      },
      'dba_logfile': {
          'level': 'DEBUG',
          'filters': ['require_debug_false', 'require_debug_true'],
          'class': 'logging.handlers.WatchedFileHandler',  # read into more
          'filename': os.path.join(BASE_DIR, 'dba.log'),
          'formatter': 'simple'
      },...
  </code></pre>
  
  <p>Where it says <code>'filename': os.path.join(BASE_DIR, 'prod.log'),</code>, this does not work. I need to put a full path to an already existent file.</p>
  
  <p>What am I doing wrong?</p>