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

Set the category registry capacity&period;

== Synopsis

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

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

== Description

Set the capacity of the category registry of this logger manager 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`&period; However, subsequent attempts to add categories to the registry will fail&period; The behavior is undefined unless `0 &lt;&equals; length`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *length*
| the maximum number of categories
|===


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