Register the specified collector under collectorName.
Declared in <ball_loggermanager.h>
int
registerAttributeCollector(
AttributeCollector const& collector,
std::string_view const& collectorName);
Add the specified collector with the specified collectorName to the registry of attribute collectors maintained by this logger manager. Return 0 if collector was successfully registered with this logger manager, and a non-zero value (with no effect) otherwise. Note that this method will fail if a collector having collectorName is already registered.
0 if collector was successfully registered, and a non-zero value otherwise
| Name | Description |
|---|---|
| collector | attribute collector to register |
| collectorName | name under which to register the collector |