1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Class template basic_logger</title> 5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Log v2"> 8<link rel="up" href="../../../logging_sources.html#header.boost.log.sources.basic_logger_hpp" title="Header <boost/log/sources/basic_logger.hpp>"> 9<link rel="prev" href="basic_co_idm46079580295792.html" title="Class template basic_composite_logger<CharT, FinalT, single_thread_model, FeaturesT>"> 10<link rel="next" href="swap_idm46079580004400.html" title="Function template swap"> 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="basic_co_idm46079580295792.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../logging_sources.html#header.boost.log.sources.basic_logger_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="swap_idm46079580004400.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 17</div> 18<div class="refentry"> 19<a name="boost.log.sources.basic_logger"></a><div class="titlepage"></div> 20<div class="refnamediv"> 21<h2><span class="refentrytitle">Class template basic_logger</span></h2> 22<p>boost::log::sources::basic_logger — Basic logger class. </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: <<a class="link" href="../../../logging_sources.html#header.boost.log.sources.basic_logger_hpp" title="Header <boost/log/sources/basic_logger.hpp>">boost/log/sources/basic_logger.hpp</a>> 26 27</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> FinalT<span class="special">,</span> <span class="keyword">typename</span> ThreadingModelT<span class="special">></span> 28<span class="keyword">class</span> <a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">ThreadingModelT</span> <span class="special">{</span> 29<span class="keyword">public</span><span class="special">:</span> 30 <span class="comment">// types</span> 31 <span class="keyword">typedef</span> <span class="identifier">CharT</span> <a name="boost.log.sources.basic_logger.char_type"></a><span class="identifier">char_type</span><span class="special">;</span> <span class="comment">// Character type. </span> 32 <span class="keyword">typedef</span> <span class="identifier">FinalT</span> <a name="boost.log.sources.basic_logger.final_type"></a><span class="identifier">final_type</span><span class="special">;</span> <span class="comment">// Final logger type. </span> 33 <span class="keyword">typedef</span> <span class="identifier">ThreadingModelT</span> <a name="boost.log.sources.basic_logger.threading_model"></a><span class="identifier">threading_model</span><span class="special">;</span> <span class="comment">// Threading model type. </span> 34 <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="boost.log.sources.basic_logger.swap_lock"></a><span class="identifier">swap_lock</span><span class="special">;</span> <span class="comment">// Lock requirement for the swap_unlocked method. </span> 35 <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="boost.log.sources.basic_logger.add_attribute_lock"></a><span class="identifier">add_attribute_lock</span><span class="special">;</span> <span class="comment">// Lock requirement for the add_attribute_unlocked method. </span> 36 <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="boost.log.sources.basic_logger.remove_attribute_lock"></a><span class="identifier">remove_attribute_lock</span><span class="special">;</span> <span class="comment">// Lock requirement for the remove_attribute_unlocked method. </span> 37 <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="boost.log.sources.basic_logger.remove_all_attributes_lock"></a><span class="identifier">remove_all_attributes_lock</span><span class="special">;</span> <span class="comment">// Lock requirement for the remove_all_attributes_unlocked method. </span> 38 <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="boost.log.sources.basic_logger.get_attributes_lock"></a><span class="identifier">get_attributes_lock</span><span class="special">;</span> <span class="comment">// Lock requirement for the get_attributes method. </span> 39 <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="boost.log.sources.basic_logger.open_record_lock"></a><span class="identifier">open_record_lock</span><span class="special">;</span> <span class="comment">// Lock requirement for the open_record_unlocked method. </span> 40 <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="boost.log.sources.basic_logger.set_attributes_lock"></a><span class="identifier">set_attributes_lock</span><span class="special">;</span> <span class="comment">// Lock requirement for the set_attributes method. </span> 41 <span class="keyword">typedef</span> <span class="identifier">no_lock</span><span class="special"><</span> <span class="identifier">threading_model</span> <span class="special">></span> <a name="boost.log.sources.basic_logger.push_record_lock"></a><span class="identifier">push_record_lock</span><span class="special">;</span> <span class="comment">// Lock requirement for the push_record_unlocked method. </span> 42 43 <span class="comment">// <a class="link" href="basic_logger.html#boost.log.sources.basic_loggerconstruct-copy-destruct">construct/copy/destruct</a></span> 44 <a class="link" href="basic_logger.html#idm46079580365088-bb"><span class="identifier">basic_logger</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 45 <a class="link" href="basic_logger.html#idm46079580364288-bb"><span class="identifier">basic_logger</span></a><span class="special">(</span><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 46 <a class="link" href="basic_logger.html#idm46079580361216-bb"><span class="identifier">basic_logger</span></a><span class="special">(</span><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="special">&&</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_nothrow_move_constructible</span><span class="special"><</span> <span class="identifier">threading_model</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span> <span class="special">&&</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_nothrow_move_constructible</span><span class="special"><</span> <span class="identifier">core_ptr</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span> <span class="special">&&</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_nothrow_move_constructible</span><span class="special"><</span> <span class="identifier">attribute_set</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span> 47 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> ArgsT<span class="special">></span> <span class="keyword">explicit</span> <a class="link" href="basic_logger.html#idm46079580357696-bb"><span class="identifier">basic_logger</span></a><span class="special">(</span><span class="identifier">ArgsT</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 48 <a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="special">&</span> <a class="link" href="basic_logger.html#idm46079580007024-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span> 49 50 <span class="comment">// <a class="link" href="basic_logger.html#idm46079580355056-bb">protected member functions</a></span> 51 <span class="identifier">core_ptr</span> <span class="keyword">const</span> <span class="special">&</span> <a class="link" href="basic_logger.html#idm46079580354480-bb"><span class="identifier">core</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> 52 <span class="identifier">attribute_set</span> <span class="special">&</span> <a class="link" href="basic_logger.html#idm46079580352912-bb"><span class="identifier">attributes</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 53 <span class="identifier">attribute_set</span> <span class="keyword">const</span> <span class="special">&</span> <a class="link" href="basic_logger.html#idm46079580036576-bb"><span class="identifier">attributes</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> 54 <span class="identifier">threading_model</span> <span class="special">&</span> <a class="link" href="basic_logger.html#idm46079580035136-bb"><span class="identifier">get_threading_model</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> 55 <span class="identifier">threading_model</span> <span class="keyword">const</span> <span class="special">&</span> <a class="link" href="basic_logger.html#idm46079580033568-bb"><span class="identifier">get_threading_model</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span> 56 <span class="identifier">final_type</span> <span class="special">*</span> <a class="link" href="basic_logger.html#idm46079580031984-bb"><span class="identifier">final_this</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span> 57 <span class="identifier">final_type</span> <span class="keyword">const</span> <span class="special">*</span> <a class="link" href="basic_logger.html#idm46079580030432-bb"><span class="identifier">final_this</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span> 58 <span class="keyword">void</span> <a class="link" href="basic_logger.html#idm46079580028880-bb"><span class="identifier">swap_unlocked</span></a><span class="special">(</span><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 59 <span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special"><</span> <span class="identifier">attribute_set</span><span class="special">::</span><span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">></span> 60 <a class="link" href="basic_logger.html#idm46079580026192-bb"><span class="identifier">add_attribute_unlocked</span></a><span class="special">(</span><span class="identifier">attribute_name</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">attribute</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 61 <span class="keyword">void</span> <a class="link" href="basic_logger.html#idm46079580023072-bb"><span class="identifier">remove_attribute_unlocked</span></a><span class="special">(</span><span class="identifier">attribute_set</span><span class="special">::</span><span class="identifier">iterator</span><span class="special">)</span><span class="special">;</span> 62 <span class="keyword">void</span> <a class="link" href="basic_logger.html#idm46079580020656-bb"><span class="identifier">remove_all_attributes_unlocked</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 63 <span class="identifier">record</span> <a class="link" href="basic_logger.html#idm46079580018928-bb"><span class="identifier">open_record_unlocked</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 64 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> ArgsT<span class="special">></span> <span class="identifier">record</span> <a class="link" href="basic_logger.html#idm46079580017216-bb"><span class="identifier">open_record_unlocked</span></a><span class="special">(</span><span class="identifier">ArgsT</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 65 <span class="keyword">void</span> <a class="link" href="basic_logger.html#idm46079580013968-bb"><span class="identifier">push_record_unlocked</span></a><span class="special">(</span><span class="identifier">record</span> <span class="special">&&</span><span class="special">)</span><span class="special">;</span> 66 <span class="identifier">attribute_set</span> <a class="link" href="basic_logger.html#idm46079580011568-bb"><span class="identifier">get_attributes_unlocked</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> 67 <span class="keyword">void</span> <a class="link" href="basic_logger.html#idm46079580009584-bb"><span class="identifier">set_attributes_unlocked</span></a><span class="special">(</span><span class="identifier">attribute_set</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 68<span class="special">}</span><span class="special">;</span></pre></div> 69<div class="refsect1"> 70<a name="idm44984870317360"></a><h2>Description</h2> 71<p>The <code class="computeroutput"><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a></code> class template serves as a base class for all loggers provided by the library. It can also be used as a base for user-defined loggers. The template parameters are:</p> 72<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 73<li class="listitem"><p><code class="computeroutput">CharT</code> - logging character type </p></li> 74<li class="listitem"><p><code class="computeroutput">FinalT</code> - final type of the logger that eventually derives from the <code class="computeroutput"><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a></code>. There may be other classes in the hierarchy between the final class and <code class="computeroutput"><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a></code>. </p></li> 75<li class="listitem"><p><code class="computeroutput">ThreadingModelT</code> - threading model policy. Must provide methods of the Boost.Thread locking concept used in <code class="computeroutput"><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a></code> class and all its derivatives in the hierarchy up to the <code class="computeroutput">FinalT</code> class. The <code class="computeroutput"><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a></code> class itself requires methods of the SharedLockable concept. The threading model policy must also be default and copy-constructible and support member function <code class="computeroutput">swap</code>. There are currently two policies provided: <code class="computeroutput"><a class="link" href="single_thread_model.html" title="Struct single_thread_model">single_thread_model</a></code> and <code class="computeroutput"><a class="link" href="multi_thread_model.html" title="Struct template multi_thread_model">multi_thread_model</a></code>.</p></li> 76</ul></div> 77<p> 78The logger implements fundamental facilities of loggers, such as storing source-specific attribute set and formatting log record messages. The basic logger interacts with the logging core in order to apply filtering and pass records to sinks. </p> 79<div class="refsect2"> 80<a name="idm44984870301120"></a><h3> 81<a name="boost.log.sources.basic_loggerconstruct-copy-destruct"></a><code class="computeroutput">basic_logger</code> 82 public 83 construct/copy/destruct</h3> 84<div class="orderedlist"><ol class="orderedlist" type="1"> 85<li class="listitem"> 86<pre class="literallayout"><a name="idm46079580365088-bb"></a><span class="identifier">basic_logger</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre> 87<p>Constructor. Initializes internal data structures of the basic logger class, acquires reference to the logging core. </p> 88</li> 89<li class="listitem"> 90<pre class="literallayout"><a name="idm46079580364288-bb"></a><span class="identifier">basic_logger</span><span class="special">(</span><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="keyword">const</span> <span class="special">&</span> that<span class="special">)</span><span class="special">;</span></pre> 91<p>Copy constructor. Copies all attributes from the source logger.</p> 92<div class="note"><table border="0" summary="Note"> 93<tr> 94<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td> 95<th align="left">Note</th> 96</tr> 97<tr><td align="left" valign="top"><p>Not thread-safe. The source logger must be locked in the final class before copying.</p></td></tr> 98</table></div> 99<p> 100 101</p> 102<div class="variablelist"><table border="0" class="variablelist compact"> 103<colgroup> 104<col align="left" valign="top"> 105<col> 106</colgroup> 107<tbody><tr> 108<td><p><span class="term">Parameters:</span></p></td> 109<td><div class="variablelist"><table border="0" class="variablelist compact"> 110<colgroup> 111<col align="left" valign="top"> 112<col> 113</colgroup> 114<tbody><tr> 115<td><p><span class="term"><code class="computeroutput">that</code></span></p></td> 116<td><p>Source logger </p></td> 117</tr></tbody> 118</table></div></td> 119</tr></tbody> 120</table></div> 121</li> 122<li class="listitem"> 123<pre class="literallayout"><a name="idm46079580361216-bb"></a><span class="identifier">basic_logger</span><span class="special">(</span><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="special">&&</span> that<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_nothrow_move_constructible</span><span class="special"><</span> <span class="identifier">threading_model</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span> <span class="special">&&</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_nothrow_move_constructible</span><span class="special"><</span> <span class="identifier">core_ptr</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span> <span class="special">&&</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_nothrow_move_constructible</span><span class="special"><</span> <span class="identifier">attribute_set</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre> 124<p>Move constructor. Moves all attributes from the source logger.</p> 125<div class="note"><table border="0" summary="Note"> 126<tr> 127<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td> 128<th align="left">Note</th> 129</tr> 130<tr><td align="left" valign="top"><p>Not thread-safe. The source logger must be locked in the final class before copying.</p></td></tr> 131</table></div> 132<p> 133 134</p> 135<div class="variablelist"><table border="0" class="variablelist compact"> 136<colgroup> 137<col align="left" valign="top"> 138<col> 139</colgroup> 140<tbody><tr> 141<td><p><span class="term">Parameters:</span></p></td> 142<td><div class="variablelist"><table border="0" class="variablelist compact"> 143<colgroup> 144<col align="left" valign="top"> 145<col> 146</colgroup> 147<tbody><tr> 148<td><p><span class="term"><code class="computeroutput">that</code></span></p></td> 149<td><p>Source logger </p></td> 150</tr></tbody> 151</table></div></td> 152</tr></tbody> 153</table></div> 154</li> 155<li class="listitem"> 156<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> ArgsT<span class="special">></span> <span class="keyword">explicit</span> <a name="idm46079580357696-bb"></a><span class="identifier">basic_logger</span><span class="special">(</span><span class="identifier">ArgsT</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span></pre> 157<p>Constructor with named arguments. The constructor ignores all arguments. The result of construction is equivalent to default construction. </p> 158</li> 159<li class="listitem"> 160<pre class="literallayout"><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="special">&</span> <a name="idm46079580007024-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span></pre>Assignment is closed (should be implemented through copy and swap in the final class) </li> 161</ol></div> 162</div> 163<div class="refsect2"> 164<a name="idm44984870239536"></a><h3> 165<a name="idm46079580355056-bb"></a><code class="computeroutput">basic_logger</code> protected member functions</h3> 166<div class="orderedlist"><ol class="orderedlist" type="1"> 167<li class="listitem"> 168<pre class="literallayout"><span class="identifier">core_ptr</span> <span class="keyword">const</span> <span class="special">&</span> <a name="idm46079580354480-bb"></a><span class="identifier">core</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre> 169<p>An accessor to the logging system pointer </p> 170</li> 171<li class="listitem"> 172<pre class="literallayout"><span class="identifier">attribute_set</span> <span class="special">&</span> <a name="idm46079580352912-bb"></a><span class="identifier">attributes</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre> 173<p>An accessor to the logger attributes </p> 174</li> 175<li class="listitem"> 176<pre class="literallayout"><span class="identifier">attribute_set</span> <span class="keyword">const</span> <span class="special">&</span> <a name="idm46079580036576-bb"></a><span class="identifier">attributes</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre> 177<p>An accessor to the logger attributes </p> 178</li> 179<li class="listitem"> 180<pre class="literallayout"><span class="identifier">threading_model</span> <span class="special">&</span> <a name="idm46079580035136-bb"></a><span class="identifier">get_threading_model</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre> 181<p>An accessor to the threading model base </p> 182</li> 183<li class="listitem"> 184<pre class="literallayout"><span class="identifier">threading_model</span> <span class="keyword">const</span> <span class="special">&</span> <a name="idm46079580033568-bb"></a><span class="identifier">get_threading_model</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre> 185<p>An accessor to the threading model base </p> 186</li> 187<li class="listitem"> 188<pre class="literallayout"><span class="identifier">final_type</span> <span class="special">*</span> <a name="idm46079580031984-bb"></a><span class="identifier">final_this</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre> 189<p>An accessor to the final logger </p> 190</li> 191<li class="listitem"> 192<pre class="literallayout"><span class="identifier">final_type</span> <span class="keyword">const</span> <span class="special">*</span> <a name="idm46079580030432-bb"></a><span class="identifier">final_this</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre> 193<p>An accessor to the final logger </p> 194</li> 195<li class="listitem"> 196<pre class="literallayout"><span class="keyword">void</span> <a name="idm46079580028880-bb"></a><span class="identifier">swap_unlocked</span><span class="special">(</span><a class="link" href="basic_logger.html" title="Class template basic_logger">basic_logger</a> <span class="special">&</span> that<span class="special">)</span><span class="special">;</span></pre> 197<p>Unlocked <code class="computeroutput">swap</code> </p> 198</li> 199<li class="listitem"> 200<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special"><</span> <span class="identifier">attribute_set</span><span class="special">::</span><span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">></span> 201<a name="idm46079580026192-bb"></a><span class="identifier">add_attribute_unlocked</span><span class="special">(</span><span class="identifier">attribute_name</span> <span class="keyword">const</span> <span class="special">&</span> name<span class="special">,</span> <span class="identifier">attribute</span> <span class="keyword">const</span> <span class="special">&</span> attr<span class="special">)</span><span class="special">;</span></pre> 202<p>Unlocked <code class="computeroutput">add_attribute</code> </p> 203</li> 204<li class="listitem"> 205<pre class="literallayout"><span class="keyword">void</span> <a name="idm46079580023072-bb"></a><span class="identifier">remove_attribute_unlocked</span><span class="special">(</span><span class="identifier">attribute_set</span><span class="special">::</span><span class="identifier">iterator</span> it<span class="special">)</span><span class="special">;</span></pre> 206<p>Unlocked <code class="computeroutput">remove_attribute</code> </p> 207</li> 208<li class="listitem"> 209<pre class="literallayout"><span class="keyword">void</span> <a name="idm46079580020656-bb"></a><span class="identifier">remove_all_attributes_unlocked</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre> 210<p>Unlocked <code class="computeroutput">remove_all_attributes</code> </p> 211</li> 212<li class="listitem"> 213<pre class="literallayout"><span class="identifier">record</span> <a name="idm46079580018928-bb"></a><span class="identifier">open_record_unlocked</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre> 214<p>Unlocked <code class="computeroutput">open_record</code> </p> 215</li> 216<li class="listitem"> 217<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> ArgsT<span class="special">></span> <span class="identifier">record</span> <a name="idm46079580017216-bb"></a><span class="identifier">open_record_unlocked</span><span class="special">(</span><span class="identifier">ArgsT</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span></pre> 218<p>Unlocked <code class="computeroutput">open_record</code> </p> 219</li> 220<li class="listitem"> 221<pre class="literallayout"><span class="keyword">void</span> <a name="idm46079580013968-bb"></a><span class="identifier">push_record_unlocked</span><span class="special">(</span><span class="identifier">record</span> <span class="special">&&</span> rec<span class="special">)</span><span class="special">;</span></pre> 222<p>Unlocked <code class="computeroutput">push_record</code> </p> 223</li> 224<li class="listitem"> 225<pre class="literallayout"><span class="identifier">attribute_set</span> <a name="idm46079580011568-bb"></a><span class="identifier">get_attributes_unlocked</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre> 226<p>Unlocked <code class="computeroutput">get_attributes</code> </p> 227</li> 228<li class="listitem"> 229<pre class="literallayout"><span class="keyword">void</span> <a name="idm46079580009584-bb"></a><span class="identifier">set_attributes_unlocked</span><span class="special">(</span><span class="identifier">attribute_set</span> <span class="keyword">const</span> <span class="special">&</span> attrs<span class="special">)</span><span class="special">;</span></pre> 230<p>Unlocked <code class="computeroutput">set_attributes</code> </p> 231</li> 232</ol></div> 233</div> 234</div> 235</div> 236<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 237<td align="left"></td> 238<td align="right"><div class="copyright-footer">Copyright © 2007-2019 Andrey Semashev<p> 239 Distributed under the Boost Software License, Version 1.0. (See accompanying 240 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>). 241 </p> 242</div></td> 243</tr></table> 244<hr> 245<div class="spirit-nav"> 246<a accesskey="p" href="basic_co_idm46079580295792.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../logging_sources.html#header.boost.log.sources.basic_logger_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="swap_idm46079580004400.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 247</div> 248</body> 249</html> 250