[#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 or create the named category in the logger manager registry. [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 the named category into the specified category holder. [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..._]# == Return Value address of the named category, the _Default_ _Category_, or 0 == Parameters [cols="1,4"] |=== | Name| Description | *categoryName* | name of the category to look up or create | *categoryHolder* | holder to load with the category and threshold |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#