[#BloombergLP-ball-Log-setCategory-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Log.adoc[Log]::setCategory :relfileprefix: ../../../ :mrdocs: Load into the specified `categoryHolder` the address of the non‐modifiable category having the specified `categoryName` if such a category exists, or if a new category having `categoryName` can be added to the registry (i.e., if the registry has sufficient capacity to accommodate new entries); otherwise, load the address of the non‐modifiable _Default_ _Category_. Also load into `categoryHolder` the maximum threshold level of the category ultimately loaded into `categoryHolder`. This method has no effect if the logger manager singleton is not initialized. == Synopsis Declared in `<ball_log.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void setCategory( xref:BloombergLP/ball/CategoryHolder.adoc[CategoryHolder]* categoryHolder, char const* categoryName); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#