Redirecting stdout/stderr

Currently there is a hidden set_stdio method that is used by the rust testing framework to temporarily take and redirect println! calls for a thread. Has there been any attempt in standardizing an API to achieve this that normal code can use?

It would be really convenient for certain setups (command line tools and multi threaded apps) to be able to override all stdout prints.