[#BloombergLP-ball-LoggerManager-setMaxNumCategories] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::setMaxNumCategories :relfileprefix: ../../../ :mrdocs: Set the capacity of the category registry of this logger manager 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 `0 <= length`. == Synopsis Declared in `<ball_loggermanager.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setMaxNumCategories(int length); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#