WSGI passes its request context into Flask. How do I access it?
Eg, to write to the webserver error log from Flask app that isn't using WSGI, I write to stderr:
sys.stderr.write(str(msg) + "\n")
For this type of logging output, WSGI for Python requires that I use the WSGI request context environ['wsgi.errors'] See the WSGI debugging docs.
How do I do this?