Windows Azure Web sites python
Solved
For those who are interested I ended up solving this problem my manually adding error handling into my flask application completely bypassing the IIS settings and windows azure configs - far too complicated with no documentation at all.
from werkzeug.debug import get_current_traceback @app.errorhandler(500)def internal_server_error(e): base = os.path.dirname(os.path.abspath(__file__)) f = open('%s/logs/error.log' % (base), 'a') track = get_current_traceback(skip=1, show_hidden_frames=True, ignore_system_exceptions=False) track.log(f) f.close() return 'An error has occured', 500