boost::unit_test::results_reporter::set_stream — Sets output stream for results reporting.
// In header: <boost/test/results_reporter.hpp> void set_stream(std::ostream &);
By default std::cerr is used. Use this function to set a different stream. The framework refers to the stream by reference, so you need to make sure the stream object lifetime exceeds the testing main scope.