Boost C++ Libraries

PrevUpHomeNext

Function template register_simple_formatter_factory

boost::log::register_simple_formatter_factory — The function registers a simple formatter factory.

Synopsis

// In header: <boost/log/utility/init/formatter_parser.hpp>


template<typename AttributeValueT, typename CharT, typename TraitsT, 
         typename AllocatorT> 
  void register_simple_formatter_factory(std::basic_string< CharT, TraitsT, AllocatorT > const & attr_name);

Description

The function registers a simple formatter factory. The registered factory will generate formatters that will be equivalent to the log::formatters::attr formatter (i.e. that will use the native operator<< to format the attribute value). The factory does not use any arguments, if specified.

Parameters:
attr_name

Attribute name


PrevUpHomeNext