boost::unit_test::framework::register_observer — Observer lifetime should exceed the the testing execution timeframe.
// In header: <boost/test/framework.hpp> void register_observer(test_observer & to);
Parameters:
to
test observer object to add