1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Class template wseverity_channel_logger_mt</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.severity_channel_logger_hpp" title="Header <boost/log/sources/severity_channel_logger.hpp>"> 9<link rel="prev" href="wseverity_channel_logger.html" title="Class template wseverity_channel_logger"> 10<link rel="next" href="../../../BOOST_LO_idm46079577493968.html" title="Macro BOOST_LOG_STREAM_CHANNEL_SEV"> 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="wseverity_channel_logger.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../logging_sources.html#header.boost.log.sources.severity_channel_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="../../../BOOST_LO_idm46079577493968.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 17</div> 18<div class="refentry"> 19<a name="boost.log.sources.wseverit_idm46079577509680"></a><div class="titlepage"></div> 20<div class="refnamediv"> 21<h2><span class="refentrytitle">Class template wseverity_channel_logger_mt</span></h2> 22<p>boost::log::sources::wseverity_channel_logger_mt — Wide-char thread-safe logger. Functionally equivalent to <code class="computeroutput"><a class="link" href="basic_severity_logger.html" title="Class template basic_severity_logger">basic_severity_logger</a></code> and <code class="computeroutput"><a class="link" href="basic_channel_logger.html" title="Class template basic_channel_logger">basic_channel_logger</a></code>. </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.severity_channel_logger_hpp" title="Header <boost/log/sources/severity_channel_logger.hpp>">boost/log/sources/severity_channel_logger.hpp</a>> 26 27</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> LevelT <span class="special">=</span> <span class="keyword">int</span><span class="special">,</span> <span class="keyword">typename</span> ChannelT <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">wstring</span><span class="special">></span> 28<span class="keyword">class</span> <a class="link" href="wseverit_idm46079577509680.html" title="Class template wseverity_channel_logger_mt">wseverity_channel_logger_mt</a> <span class="special">:</span> <span class="keyword">public</span> basic_composite_logger< wchar_t, wseverity_channel_logger_mt< LevelT, ChannelT >, multi_thread_model< implementation_defined >, features< severity< LevelT >, channel< ChannelT > > > 29<span class="special">{</span> 30<span class="keyword">public</span><span class="special">:</span> 31 <span class="comment">// <a class="link" href="wseverit_idm46079577509680.html#boost.log.sources.wseverit_idm46079577509680construct-copy-destruct">construct/copy/destruct</a></span> 32 <a class="link" href="wseverit_idm46079577509680.html#idm46079577502400-bb"><span class="identifier">wseverity_channel_logger_mt</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 33 <a class="link" href="wseverit_idm46079577509680.html#idm46079577501696-bb"><span class="identifier">wseverity_channel_logger_mt</span></a><span class="special">(</span><a class="link" href="wseverit_idm46079577509680.html" title="Class template wseverity_channel_logger_mt">wseverity_channel_logger_mt</a> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 34 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span><span class="special">...</span> ArgsT<span class="special">></span> 35 <span class="keyword">explicit</span> <a class="link" href="wseverit_idm46079577509680.html#idm46079577500000-bb"><span class="identifier">wseverity_channel_logger_mt</span></a><span class="special">(</span><span class="identifier">ArgsT</span><span class="special">...</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 36 <a class="link" href="wseverit_idm46079577509680.html" title="Class template wseverity_channel_logger_mt">wseverity_channel_logger_mt</a> <span class="special">&</span> <a class="link" href="wseverit_idm46079577509680.html#idm46079577497184-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="wseverit_idm46079577509680.html" title="Class template wseverity_channel_logger_mt">wseverity_channel_logger_mt</a> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 37<span class="special">}</span><span class="special">;</span></pre></div> 38<div class="refsect1"> 39<a name="idm44984867740640"></a><h2>Description</h2> 40<p>See <code class="computeroutput">severity</code> and <code class="computeroutput">channel</code> class templates for a more detailed description </p> 41<div class="refsect2"> 42<a name="idm44984867738528"></a><h3> 43<a name="boost.log.sources.wseverit_idm46079577509680construct-copy-destruct"></a><code class="computeroutput">wseverity_channel_logger_mt</code> 44 public 45 construct/copy/destruct</h3> 46<div class="orderedlist"><ol class="orderedlist" type="1"> 47<li class="listitem"> 48<pre class="literallayout"><a name="idm46079577502400-bb"></a><span class="identifier">wseverity_channel_logger_mt</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre> 49<p>Default constructor </p> 50</li> 51<li class="listitem"> 52<pre class="literallayout"><a name="idm46079577501696-bb"></a><span class="identifier">wseverity_channel_logger_mt</span><span class="special">(</span><a class="link" href="wseverit_idm46079577509680.html" title="Class template wseverity_channel_logger_mt">wseverity_channel_logger_mt</a> <span class="keyword">const</span> <span class="special">&</span> that<span class="special">)</span><span class="special">;</span></pre> 53<p>Copy constructor </p> 54</li> 55<li class="listitem"> 56<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span><span class="special">...</span> ArgsT<span class="special">></span> 57 <span class="keyword">explicit</span> <a name="idm46079577500000-bb"></a><span class="identifier">wseverity_channel_logger_mt</span><span class="special">(</span><span class="identifier">ArgsT</span><span class="special">...</span> <span class="keyword">const</span> <span class="special">&</span> args<span class="special">)</span><span class="special">;</span></pre> 58<p>Constructor with named arguments </p> 59</li> 60<li class="listitem"> 61<pre class="literallayout"><a class="link" href="wseverit_idm46079577509680.html" title="Class template wseverity_channel_logger_mt">wseverity_channel_logger_mt</a> <span class="special">&</span> 62<a name="idm46079577497184-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="wseverit_idm46079577509680.html" title="Class template wseverity_channel_logger_mt">wseverity_channel_logger_mt</a> <span class="keyword">const</span> <span class="special">&</span> that<span class="special">)</span><span class="special">;</span></pre> 63<p>Assignment operator</p> 64<p>Swaps two loggers </p> 65</li> 66</ol></div> 67</div> 68</div> 69</div> 70<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 71<td align="left"></td> 72<td align="right"><div class="copyright-footer">Copyright © 2007-2019 Andrey Semashev<p> 73 Distributed under the Boost Software License, Version 1.0. (See accompanying 74 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>). 75 </p> 76</div></td> 77</tr></table> 78<hr> 79<div class="spirit-nav"> 80<a accesskey="p" href="wseverity_channel_logger.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../logging_sources.html#header.boost.log.sources.severity_channel_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="../../../BOOST_LO_idm46079577493968.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 81</div> 82</body> 83</html> 84