[#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`. If `length` is 0, no limit will be imposed. No categories are removed from the registry if the current number of categories exceeds `length`; however, subsequent attempts to add categories to the registry will fail. The behavior is undefined unless the logger manager singleton has been initialized and is not in the process of being shut down, and `0 <= length`. == Synopsis Declared in `<ball_administration.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void setMaxNumCategories(int length); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#