[#BloombergLP-ball-Log-setCategory-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Log.adoc[Log]::setCategory :relfileprefix: ../../../ :mrdocs: `setCategory` overloads == Synopses Declared in `<ball_log.h>` Return from the logger manager singleton's category registry 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, return the address of the non‐modifiable _Default_ _Category_. Return 0 if the logger manager singleton is not initialized. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/ball/Category.adoc[Category] const* xref:BloombergLP/ball/Log/setCategory-07.adoc[setCategory](char const* categoryName); ---- [.small]#xref:BloombergLP/ball/Log/setCategory-07.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/ball/Log/setCategory-00.adoc[setCategory]( xref:BloombergLP/ball/CategoryHolder.adoc[CategoryHolder]* categoryHolder, char const* categoryName); ---- [.small]#xref:BloombergLP/ball/Log/setCategory-00.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#