BOOST_LOG_SCOPED_THREAD_ATTR — The macro sets a scoped thread-wide attribute in a more compact way.
// In header: <boost/log/attributes/scoped_attribute.hpp> BOOST_LOG_SCOPED_THREAD_ATTR(attr_name, attr)