boost::log::sinks::event_log::direct_event_type_mapping — Straightforward event type mapping.
// In header: <boost/log/sinks/event_log_backend.hpp> template<typename AttributeValueT = int> class direct_event_type_mapping : public basic_direct_mapping< event_type, AttributeValueT > { public: // construct/copy/destruct explicit direct_event_type_mapping(attribute_name const &); };