logging_api.html 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>Logging API</title>
  5. <link rel="stylesheet" href="../../boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
  7. <link rel="home" href="../../index.html" title="Boost.Test">
  8. <link rel="up" href="../test_output.html" title="Controlling outputs">
  9. <link rel="prev" href="report_formats/report_xml_format.html" title="XML based report output format">
  10. <link rel="next" href="logging_api/log_ct_output_stream_redirection.html" title="Log output stream redirection">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr>
  14. <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
  15. <td align="center"><a href="../../../../../../index.html">Home</a></td>
  16. <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
  17. <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
  18. <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
  19. <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
  20. </tr></table>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="report_formats/report_xml_format.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../test_output.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="logging_api/log_ct_output_stream_redirection.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
  24. </div>
  25. <div class="section">
  26. <div class="titlepage"><div><div><h3 class="title">
  27. <a name="boost_test.test_output.logging_api"></a><a class="link" href="logging_api.html" title="Logging API">Logging API</a>
  28. </h3></div></div></div>
  29. <div class="toc"><dl class="toc">
  30. <dt><span class="section"><a href="logging_api/log_ct_output_stream_redirection.html">Log
  31. output stream redirection</a></span></dt>
  32. <dt><span class="section"><a href="logging_api/log_ct_log_level.html">Log
  33. level configuration</a></span></dt>
  34. <dt><span class="section"><a href="logging_api/log_ct_log_format.html">Predefined
  35. log format selection</a></span></dt>
  36. <dt><span class="section"><a href="logging_api/custom_log_formatter.html">Custom
  37. log format support</a></span></dt>
  38. </dl></div>
  39. <p>
  40. While many test log configuration tasks can be performed at runtime using
  41. predefined framework parameters, the <span class="emphasis"><em>Unit Test Framework</em></span>
  42. provides a compile time interface as well. The interface gives you full power
  43. over what, where and how to log. The interface of the logger is provided
  44. by singleton class <code class="computeroutput"><a class="link" href="../../boost/unit_test/unit_test_log_t.html" title="Class unit_test_log_t">boost::unit_test::unit_test_log_t</a></code>
  45. and is accessible through local file scope reference to single instance of
  46. this class
  47. </p>
  48. <pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">unit_test</span><span class="special">::</span><span class="identifier">unit_test_log</span>
  49. </pre>
  50. <p>
  51. In order to install customization of the logger, the <span class="emphasis"><em>Unit Test
  52. Framework</em></span> provides the <a class="link" href="../utf_reference/link_references/link_boost_test_global_configuration.html" title="BOOST_TEST_GLOBAL_CONFIGURATION"><code class="computeroutput"><span class="identifier">BOOST_TEST_GLOBAL_CONFIGURATION</span></code></a>
  53. facility that acts in a similar fashion to a global fixture.
  54. </p>
  55. </div>
  56. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  57. <td align="left"></td>
  58. <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2019 Boost.Test
  59. contributors<p>
  60. Distributed under the Boost Software License, Version 1.0. (See accompanying
  61. file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
  62. </p>
  63. </div></td>
  64. </tr></table>
  65. <hr>
  66. <div class="spirit-nav">
  67. <a accesskey="p" href="report_formats/report_xml_format.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../test_output.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="logging_api/log_ct_output_stream_redirection.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
  68. </div>
  69. </body>
  70. </html>