streamcapture (pypi): Capture output streams such as sys.stdout and sys.stderr.
Keywords: logging|python