title: Simple way of logging with Gunicorn and Flask on Heroku
body: <p>The app is running on Heroku, but the issue when running is how to avoid the unhelpful error message of <code>Internal Server Error</code> and get more verbose error messages. For example, in the production environment, even with app.debug set to True, I still get no debug.</p>
  
  <p>It would seem the smart thing to do, is to log everything to a file, but I don't see some working examples that do that. I simply want to write to a file for example. Is there any minimum working sample code that I can see that does this, outputting <strong>application</strong> errors?</p>
  
  <p>Of course my app has the following settings:</p>
  
  <pre><code>app.run(debug = True)
  </code></pre>
  
  <p>My Procfile is:</p>
  
  <pre><code>web: gunicorn login:app
  </code></pre>