[#BloombergLP-ball-ScopedAttribute-2constructor-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/ScopedAttribute.adoc[ScopedAttribute]::ScopedAttribute :relfileprefix: ../../../ :mrdocs: Set BALL logging attributes for the current thread for the scope of this object, associating the specified `name` with the specified `value`. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. == Synopsis Declared in `<ball_scopedattribute.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ScopedAttribute( char const* name, std::string_view const& value, xref:BloombergLP/ball/ScopedAttribute/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#