Class template basic_formatter_factory
boost::log::basic_formatter_factory
Synopsis
template<typename CharT, typename AttributeValueT>
class basic_formatter_factory : public boost::log::formatter_factory< CharT > {
public:
typedef AttributeValueT value_type;
typedef base_type::formatter_type formatter_type;
typedef base_type::args_map args_map;
virtual 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
types
-
typedef base_type::args_map args_map;
Type of the map of formatter factory arguments [argument name -> argument value]. This type of maps will be passed to formatter factories on attempt to create a formatter.
basic_formatter_factory
public member functions
-
virtual 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 |
|