1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> 4<title>Function template add_scoped_logger_attribute</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="../../attributes.html#header.boost.log.attributes.scoped_attribute_hpp" title="Header <boost/log/attributes/scoped_attribute.hpp>"> 9<link rel="prev" href="../../BOOST_LOG_FUNC.html" title="Macro BOOST_LOG_FUNC"> 10<link rel="next" href="add_scop_idm45711348491920.html" title="Function add_scoped_thread_attribute"> 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_FUNC.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../attributes.html#header.boost.log.attributes.scoped_attribute_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="add_scop_idm45711348491920.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 17</div> 18<div class="refentry"> 19<a name="boost.log.add_scop_idm45711348499472"></a><div class="titlepage"></div> 20<div class="refnamediv"> 21<h2><span class="refentrytitle">Function template add_scoped_logger_attribute</span></h2> 22<p>boost::log::add_scoped_logger_attribute</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="../../attributes.html#header.boost.log.attributes.scoped_attribute_hpp" title="Header <boost/log/attributes/scoped_attribute.hpp>">boost/log/attributes/scoped_attribute.hpp</a>> 26 27</span> 28<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> LoggerT<span class="special">></span> 29 <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <span class="identifier">add_scoped_logger_attribute</span><span class="special">(</span><span class="identifier">LoggerT</span> <span class="special">&</span> l<span class="special">,</span> 30 <a class="link" href="attribute_name.html" title="Class attribute_name">attribute_name</a> <span class="keyword">const</span> <span class="special">&</span> name<span class="special">,</span> 31 <a class="link" href="attribute.html" title="Class attribute">attribute</a> <span class="keyword">const</span> <span class="special">&</span> attr<span class="special">)</span><span class="special">;</span></pre></div> 32<div class="refsect1"> 33<a name="idm45554750472112"></a><h2>Description</h2> 34<p>Registers an attribute in the logger</p> 35<p> 36 37</p> 38<div class="variablelist"><table border="0" class="variablelist compact"> 39<colgroup> 40<col align="left" valign="top"> 41<col> 42</colgroup> 43<tbody> 44<tr> 45<td><p><span class="term">Parameters:</span></p></td> 46<td><div class="variablelist"><table border="0" class="variablelist compact"> 47<colgroup> 48<col align="left" valign="top"> 49<col> 50</colgroup> 51<tbody> 52<tr> 53<td><p><span class="term"><code class="computeroutput">attr</code></span></p></td> 54<td><p>The attribute. Must not be NULL. </p></td> 55</tr> 56<tr> 57<td><p><span class="term"><code class="computeroutput">l</code></span></p></td> 58<td><p>Logger to register the attribute in </p></td> 59</tr> 60<tr> 61<td><p><span class="term"><code class="computeroutput">name</code></span></p></td> 62<td><p>Attribute name </p></td> 63</tr> 64</tbody> 65</table></div></td> 66</tr> 67<tr> 68<td><p><span class="term">Returns:</span></p></td> 69<td><p>An unspecified guard object which may be used to initialize a <code class="computeroutput">scoped_attribute</code> variable. </p></td> 70</tr> 71</tbody> 72</table></div> 73</div> 74</div> 75<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 76<td align="left"></td> 77<td align="right"><div class="copyright-footer">Copyright © 2007-2016 Andrey Semashev<p> 78 Distributed under the Boost Software License, Version 1.0. (See accompanying 79 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>). 80 </p> 81</div></td> 82</tr></table> 83<hr> 84<div class="spirit-nav"> 85<a accesskey="p" href="../../BOOST_LOG_FUNC.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../attributes.html#header.boost.log.attributes.scoped_attribute_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="add_scop_idm45711348491920.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 86</div> 87</body> 88</html> 89