summaryrefslogtreecommitdiff
path: root/boost/test/impl/unit_test_log.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/test/impl/unit_test_log.ipp')
-rw-r--r--boost/test/impl/unit_test_log.ipp11
1 files changed, 11 insertions, 0 deletions
diff --git a/boost/test/impl/unit_test_log.ipp b/boost/test/impl/unit_test_log.ipp
index 6ef7d930a2..2a6c0f4bc6 100644
--- a/boost/test/impl/unit_test_log.ipp
+++ b/boost/test/impl/unit_test_log.ipp
@@ -525,6 +525,17 @@ unit_test_log_t::set_stream( output_format log_format, std::ostream& str )
}
}
+std::ostream*
+unit_test_log_t::get_stream( output_format log_format ) const
+{
+ BOOST_TEST_FOREACH( unit_test_log_data_helper_impl&, current_logger_data, s_log_impl().m_log_formatter_data ) {
+ if( current_logger_data.m_format == log_format) {
+ return current_logger_data.m_stream;
+ }
+ }
+ return 0;
+}
+
//____________________________________________________________________________//
void