[#BloombergLP-ball-Log-setCategory-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Log.adoc[Log]::setCategory :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<ball_log.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/ball/Category.adoc[Category] const* setCategory(char const* categoryName); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#