[#BloombergLP-ball-Administration-setMaxNumCategories]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Administration.adoc[Administration]::setMaxNumCategories
:relfileprefix: ../../../
:mrdocs:

Set the capacity of the registry of the logger manager singleton to the specified `length`&period; If `length` is 0, no limit will be imposed&period; No categories are removed from the registry if the current number of categories exceeds `length`&semi; however, subsequent attempts to add categories to the registry will fail&period; The behavior is undefined unless the logger manager singleton has been initialized and is not in the process of being shut down, and `0 &lt;&equals; length`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
setMaxNumCategories(int length);
----


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