Check for SECRET_KEY setting as well
Add example for logging into file
Log request errors to log as well