no output from BOOST_MESSAGE

Hello, I wrote a few simple test cases using Boost test, and things seem to work ok except done of my BOOST_MESSAGE() calls output anything. If the predicate fails for BOOST_REQUIRE_MESSAGE() I do get the message outputed to the screen, but not for regular BOOST_MESSAGE() Is there a setting that I should tune to output BOOST_MESSAGE, or may suppress BOOST_MESSAGE? Also I saw in a message somewhere that these functions can output to other targets than the screen. If that is the case, how do I go about doing this? Best regards, Kervin

"Kervin L. Pierre"
Hello,
I wrote a few simple test cases using Boost test, and things seem to work ok except done of my BOOST_MESSAGE() calls output anything.
You need to setup log level. By default these messages do not appear. To see them use --log_level=message
Also I saw in a message somewhere that these functions can output to other targets than the screen. If that is the case, how do I go about doing this?
If would help if you mention the version of Boost you are referring to. CVS version presents following interface: boost::unit_test::unit_test_log.set_stream( std::ostream& ) Gennadiy

Hello,
Thanks, that did it. But is there someway
I can set this option via code? I am
using version 1.33.1.
--- Gennadiy Rozental
If would help if you mention the version of Boost you are referring to. CVS version presents following interface:
boost::unit_test::unit_test_log.set_stream( std::ostream& )
Thanks, is there a way to do that in version 1.33.1? Best regards, Kervin

"Kervin L. Pierre"
Hello,
Thanks, that did it. But is there someway I can set this option via code? I am using version 1.33.1.
boost::unit_test::unit_test_log.set_threshold_level( boost::unit_test::log_messages )
--- Gennadiy Rozental
wrote: If would help if you mention the version of Boost you are referring to. CVS version presents following interface:
boost::unit_test::unit_test_log.set_stream( std::ostream& )
Thanks, is there a way to do that in version 1.33.1?
I think boost:1.33.1 interface is as above Gennadiy

Hello,
--- Gennadiy Rozental
boost::unit_test::unit_test_log.set_threshold_level(
boost::unit_test::log_messages )
Thanks, but I don't seem to have a 'unit_test_log' object, only a unit_test_log_t type. Is there a header file I need for that? Best regards, Kervin

"Kervin L. Pierre"
Hello,
--- Gennadiy Rozental
wrote: boost::unit_test::unit_test_log.set_threshold_level(
boost::unit_test::log_messages )
Thanks, but I don't seem to have a 'unit_test_log' object, only a unit_test_log_t type. Is there a header file I need for that?
It should be. It's located in unit_test_log.hpp Gennadiy

Hello Gennadiy,
Thanks a lot, that header did it.
Best regards,
Kervin
--- Gennadiy Rozental
"Kervin L. Pierre"
wrote in message
news:20061109002309.23073.qmail@web510.biz.mail.mud.yahoo.com...
Hello,
--- Gennadiy Rozental
wrote: boost::unit_test::unit_test_log.set_threshold_level(
boost::unit_test::log_messages )
Thanks, but I don't seem to have a 'unit_test_log' object, only a unit_test_log_t type. Is there a header file I need for that?
It should be. It's located in unit_test_log.hpp
Gennadiy
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org
participants (2)
-
Gennadiy Rozental
-
Kervin L. Pierre