Boost C++ Libraries

PrevUpHomeNext

Class template basic_formatter_factory

boost::log::basic_formatter_factory

Synopsis

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

template<typename CharT, typename AttributeValueT> 
class basic_formatter_factory : public boost::log::formatter_factory< CharT > {
public:
  // types
  typedef AttributeValueT           value_type;      // Attribute value type. 
  typedef base_type::formatter_type formatter_type;
  typedef base_type::args_map       args_map;      

  // public member functions
  formatter_type create_formatter(attribute_name const &, args_map const &);
};

Description

Base class for formatter factories. This class provides default implementation of formatter expressions for types supporting stream output. The factory does not take into account any additional parameters that may be specified.

basic_formatter_factory public member functions

  1. formatter_type 
    create_formatter(attribute_name const & name, args_map const & args);

    The function creates a formatter for the specified attribute.

    Parameters:

    args

    Formatter arguments

    name

    Attribute name


PrevUpHomeNext