Boost C++ Libraries

PrevUpHomeNext

Class template basic_custom_event_category_mapping

boost::log::sinks::event_log::basic_custom_event_category_mapping — Customizable event category mapping.

Synopsis

// In header: <boost/log/sinks/event_log_backend.hpp>

template<typename CharT, typename AttributeValueT = int> 
class basic_custom_event_category_mapping :
  public basic_custom_mapping< CharT, event_category_t, AttributeValueT >
{
public:
  // types
  typedef base_type::string_type string_type;  // String type. 

  // construct/copy/destruct
  explicit basic_custom_event_category_mapping(string_type const &);
};

Description

The class allows to setup a custom mapping between an attribute and event categories. The mapping should be initialized similarly to the standard map container, by using indexing operator and assignment.

basic_custom_event_category_mapping public construct/copy/destruct

  1. explicit basic_custom_event_category_mapping(string_type const & name);

    Constructor

    Parameters:
    name

    Attribute name


PrevUpHomeNext