Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

log_sink
PrevUpHomeNext

Sets the logging sink to the one specified.

This parameter allows to easily redirect the test logs. The parameter value is

  • either the string containing either a file name, in which case the Unit Test Framework will redirect log into this file
  • or stdout (the default), in which case log is redirected into standard output stream
  • or stderr , in which case log is redirected into standard error stream.
Acceptable values
  • stdout (default)
  • stderr
  • arbitrary file name
Environment variable
BOOST_TEST_LOG_SINK

PrevUpHomeNext