[#BloombergLP-ball-LoggerManager-registerAttributeCollector] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::registerAttributeCollector :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int registerAttributeCollector( xref:BloombergLP/ball/LoggerManager/AttributeCollector.adoc[AttributeCollector] const& collector, std::string_view const& collectorName); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#