3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Log formats</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="test_tools_support_for_logging/log_floating_points.html" title="Logging floating point type numbers">
10 <link rel="next" href="log_formats/test_log_output.html" title="Test log output">
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>
22 <div class="spirit-nav">
23 <a accesskey="p" href="test_tools_support_for_logging/log_floating_points.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="log_formats/test_log_output.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h3 class="title">
27 <a name="boost_test.test_output.log_formats"></a><a class="link" href="log_formats.html" title="Log formats">Log formats</a>
28 </h3></div></div></div>
29 <div class="toc"><dl class="toc">
30 <dt><span class="section"><a href="log_formats/test_log_output.html">Test
31 log output</a></span></dt>
32 <dt><span class="section"><a href="log_formats/log_human_readable_format.html">HRF:
33 Human readable log format</a></span></dt>
34 <dt><span class="section"><a href="log_formats/log_xml_format.html">XML
35 log format</a></span></dt>
36 <dt><span class="section"><a href="log_formats/log_junit_format.html">JUNIT
37 log format</a></span></dt>
40 The <span class="emphasis"><em>Unit Test Framework</em></span> supports several log formats:
42 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
44 <a class="link" href="log_formats/log_human_readable_format.html" title="HRF: Human readable log format">HRF</a>:
48 <a class="link" href="log_formats/log_xml_format.html" title="XML log format">XML</a>:
49 an machine interpretable log format
52 <a class="link" href="log_formats/log_junit_format.html" title="JUNIT log format">JUNIT</a>:
53 a standardized log format understandable by automated tools such as Continuous
58 <a name="boost_test.test_output.log_formats.h0"></a>
59 <span class="phrase"><a name="boost_test.test_output.log_formats.design"></a></span><a class="link" href="log_formats.html#boost_test.test_output.log_formats.design">Design</a>
62 The following functionalities are supported by the logging framework:
64 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
66 each logger manages its own log level. The rationale is that some log
67 format are meant for automated processing, and by design need to carry
68 all the information that will later be digested by a visualization tool.
71 several log format may be active at the same time. The rationale is that
72 the user might want to see a non-exhaustive log in his terminal using
73 a human friendly format, while having a detailed full log in a file with
74 a format dedicated to automated processing.
77 each logger <span class="emphasis"><em>indicates</em></span> its default output stream.
78 some logger may prefer to output to one of the standard stream while
79 other may prefer output to a file.
82 <div class="note"><table border="0" summary="Note">
84 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/src/images/note.png"></td>
85 <th align="left">Note</th>
87 <tr><td align="left" valign="top"><p>
88 The logger indicates the default output stream in case the default should
93 <a name="boost_test.test_output.log_formats.h1"></a>
94 <span class="phrase"><a name="boost_test.test_output.log_formats.defaults"></a></span><a class="link" href="log_formats.html#boost_test.test_output.log_formats.defaults">Defaults</a>
97 By default the active log level threshold is set to
99 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
100 <li class="listitem">
101 <a class="link" href="log_formats/test_log_output.html" title="Test log output">"non
102 fatal error messages"</a> and the test log output is generated
103 in <a class="link" href="log_formats/log_human_readable_format.html" title="HRF: Human readable log format">human
106 <li class="listitem">
107 <a class="link" href="log_formats/test_log_output.html" title="Test log output">"general
108 information"</a> for <a class="link" href="log_formats/log_junit_format.html" title="JUNIT log format">JUNIT</a>
113 The active log level threshold and the output format can be configured at
114 runtime during a test module invocation and at compile time from within a
115 test module using the <a class="link" href="logging_api.html" title="Logging API">test
116 log public interfaces</a>. The behavior is logger specific though.
119 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
120 <td align="left"></td>
121 <td align="right"><div class="copyright-footer">Copyright © 2001-2019 Boost.Test
123 Distributed under the Boost Software License, Version 1.0. (See accompanying
124 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>)
129 <div class="spirit-nav">
130 <a accesskey="p" href="test_tools_support_for_logging/log_floating_points.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="log_formats/test_log_output.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>