If in virtualenv or Heroku, set /tmp/ as the log directory.