Boost C++ Libraries

PrevUpHomeNext

Function template add_scoped_logger_attribute

boost::log::add_scoped_logger_attribute

Synopsis

// In header: <boost/log/utility/scoped_attribute.hpp>


template<typename LoggerT> 
  unspecified add_scoped_logger_attribute(LoggerT & l, 
                                          typename LoggerT::string_type const & name, 
                                          shared_ptr< attribute > const & attr);

Description

Registers an attribute in the logger

Parameters:
attr

Pointer to the attribute. Must not be NULL.

l

Logger to register the attribute in

name

Attribute name

Returns:

An unspecified guard object that may be used to initialize scoped_attribute variable.


PrevUpHomeNext