BOOST_LOG_SCOPED_THREAD_ATTR_CTOR
// In header: <boost/log/utility/scoped_attribute.hpp> BOOST_LOG_SCOPED_THREAD_ATTR_CTOR(attr_name, attr_type, attr_ctor_args)
The macro sets a scoped thread-wide attribute with constructor arguments in a more compact way