Set BALL logging attributes for the current thread for the scope of this object, associating the specified name with the specified value.

Synopsis

Declared in <ball_scopedattribute.h>

ScopedAttribute(
    char const* name,
    std::string_view const& value,
    allocator_type const& allocator = allocator_type());

Description

Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.

Parameters

Name

Description

name

literal attribute name

value

character‐string attribute value

allocator

allocator used to supply memory

Created with MrDocs