BOOST_LOG_SCOPED_LOGGER_TAG — The macro sets a scoped logger-wide tag in a more compact way.
// In header: <boost/log/attributes/scoped_attribute.hpp> BOOST_LOG_SCOPED_LOGGER_TAG(logger, attr_name, attr_value)