[#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&period; Return 0 if `collector` was successfully registered with this logger manager, and a non&hyphen;zero value (with no effect) otherwise&period; Note that this method will fail if a collector having `collectorName` is already registered&period;

== Synopsis

Declared in `&lt;ball&lowbar;loggermanager&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
registerAttributeCollector(
    xref:BloombergLP/ball/LoggerManager/AttributeCollector.adoc[AttributeCollector] const& collector,
    std::string&lowbar;view const& collectorName);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
