1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Macro BOOST_LOG_DECLARE_LOGGER_TYPE</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="BOOST_LO_idm46079579992416.html" title="Macro BOOST_LOG_FORWARD_LOGGER_MEMBERS_TEMPLATE"> 10<link rel="next" href="BOOST_LOG_DECLARE_LOGGER.html" title="Macro BOOST_LOG_DECLARE_LOGGER"> 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_LO_idm46079579992416.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="BOOST_LOG_DECLARE_LOGGER.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 17</div> 18<div class="refentry"> 19<a name="BOOST_LO_idm46079579991152"></a><div class="titlepage"></div> 20<div class="refnamediv"> 21<h2><span class="refentrytitle">Macro BOOST_LOG_DECLARE_LOGGER_TYPE</span></h2> 22<p>BOOST_LOG_DECLARE_LOGGER_TYPE — The macro declares a logger class that inherits a number of base classes. </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>BOOST_LOG_DECLARE_LOGGER_TYPE(type_name, char_type, base_seq, threading)</pre></div> 28<div class="refsect1"> 29<a name="idm44984870066816"></a><h2>Description</h2> 30<p> 31</p> 32<div class="variablelist"><table border="0" class="variablelist compact"> 33<colgroup> 34<col align="left" valign="top"> 35<col> 36</colgroup> 37<tbody><tr> 38<td><p><span class="term">Parameters:</span></p></td> 39<td><div class="variablelist"><table border="0" class="variablelist compact"> 40<colgroup> 41<col align="left" valign="top"> 42<col> 43</colgroup> 44<tbody> 45<tr> 46<td><p><span class="term"><code class="computeroutput">base_seq</code></span></p></td> 47<td><p>A Boost.Preprocessor sequence of type identifiers of the base classes templates </p></td> 48</tr> 49<tr> 50<td><p><span class="term"><code class="computeroutput">char_type</code></span></p></td> 51<td><p>The character type of the logger. Either char or wchar_t expected. </p></td> 52</tr> 53<tr> 54<td><p><span class="term"><code class="computeroutput">threading</code></span></p></td> 55<td><p>A threading model class </p></td> 56</tr> 57<tr> 58<td><p><span class="term"><code class="computeroutput">type_name</code></span></p></td> 59<td><p>The name of the logger class to declare </p></td> 60</tr> 61</tbody> 62</table></div></td> 63</tr></tbody> 64</table></div> 65</div> 66</div> 67<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 68<td align="left"></td> 69<td align="right"><div class="copyright-footer">Copyright © 2007-2019 Andrey Semashev<p> 70 Distributed under the Boost Software License, Version 1.0. (See accompanying 71 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>). 72 </p> 73</div></td> 74</tr></table> 75<hr> 76<div class="spirit-nav"> 77<a accesskey="p" href="BOOST_LO_idm46079579992416.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="BOOST_LOG_DECLARE_LOGGER.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 78</div> 79</body> 80</html> 81