Register the specified collector under collectorName.
Synopsis
Declared in <ball_loggermanager.h>
int
registerAttributeCollector(
AttributeCollector const& collector,
std::string_view const& collectorName);
Description
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.
Return Value
0 if collector was successfully registered, and a non‐zero value otherwise
Parameters
Name |
Description |
collector |
attribute collector to register |
collectorName |
name under which to register the collector |
Created with MrDocs