Boost C++ Libraries

PrevUpHomeNext

Function template register_formatter_factory

boost::log::register_formatter_factory — The function registers a user-defined formatter factory.

Synopsis

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


template<typename CharT, typename TraitsT, typename AllocatorT> 
  void register_formatter_factory(std::basic_string< CharT, TraitsT, AllocatorT > const & attr_name, 
                                  typename formatter_types< CharT >::formatter_factory const & factory);

Description

The function registers a user-defined formatter factory. The registered factory function will be called when the formatter parser detects the specified attribute name in the formatter string.

Parameters:
attr_name

Attribute name

factory

Formatter factory function

Requires:

!factory.empty()


PrevUpHomeNext