Skip to content

Allow for logging redirection

Current situation

Logs are targeting sys.stderr, and there is no easy way to change that. In some context this is annoying.

Desired outcome

A way to configure this. The OPENTF_LOGGING_REDIRECT environment variable, if defined, would be used in stead of the default (flask.logging.wsgi_errors_stream).