Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / log / doc / html / BOOST_LOG_TRIVIAL.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Macro BOOST_LOG_TRIVIAL</title>
5 <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="Chapter&#160;1.&#160;Boost.Log v2">
8 <link rel="up" href="log/reference.html#header.boost.log.trivial_hpp" title="Header &lt;boost/log/trivial.hpp&gt;">
9 <link rel="prev" href="boost/log/trivial/operator_idp33444256.html" title="Function template operator&gt;&gt;">
10 <link rel="next" href="core_components.html" title="Core components">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td></tr></table>
14 <hr>
15 <div class="spirit-nav">
16 <a accesskey="p" href="boost/log/trivial/operator_idp33444256.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="log/reference.html#header.boost.log.trivial_hpp"><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="core_components.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
17 </div>
18 <div class="refentry">
19 <a name="BOOST_LOG_TRIVIAL"></a><div class="titlepage"></div>
20 <div class="refnamediv">
21 <h2><span class="refentrytitle">Macro BOOST_LOG_TRIVIAL</span></h2>
22 <p>BOOST_LOG_TRIVIAL</p>
23 </div>
24 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
25 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="log/reference.html#header.boost.log.trivial_hpp" title="Header &lt;boost/log/trivial.hpp&gt;">boost/log/trivial.hpp</a>&gt;
26
27 </span>BOOST_LOG_TRIVIAL(lvl)</pre></div>
28 <div class="refsect1">
29 <a name="idp85662096"></a><h2>Description</h2>
30 <p>The macro is used to initiate logging. The <code class="computeroutput">lvl</code> argument of the macro specifies one of the following severity levels: <code class="computeroutput">trace</code>, <code class="computeroutput">debug</code>, <code class="computeroutput">info</code>, <code class="computeroutput">warning</code>, <code class="computeroutput">error</code> or <code class="computeroutput">fatal</code> (see <code class="computeroutput">severity_level</code> enum). Following the macro, there may be a streaming expression that composes the record message string. For example:</p>
31 <pre class="programlisting"><span class="identifier">BOOST_LOG_TRIVIAL</span><span class="special">(</span><span class="identifier">info</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="string">"Hello, world!"</span><span class="special">;</span>
32 </pre>
33 <p> </p>
34 </div>
35 </div>
36 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
37 <td align="left"></td>
38 <td align="right"><div class="copyright-footer">Copyright &#169; 2007-2014 Andrey Semashev<p>
39         Distributed under the Boost Software License, Version 1.0. (See accompanying
40         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>).
41       </p>
42 </div></td>
43 </tr></table>
44 <hr>
45 <div class="spirit-nav">
46 <a accesskey="p" href="boost/log/trivial/operator_idp33444256.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="log/reference.html#header.boost.log.trivial_hpp"><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="core_components.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
47 </div>
48 </body>
49 </html>