BloombergLP::ball::LoggerManager::registerAttributeCollector

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.

Synopsis

Declared in <ball_loggermanager.h>

int
registerAttributeCollector(
    AttributeCollector const& collector,
    std::string_view const& collectorName);