When in a virtualenv or Heroku do not log to a file.