[#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 `&lt;ball&lowbar;log&period;h&gt;`

Return from the logger manager singleton&apos;s category registry the address of the non&hyphen;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&period;e&period;, if the registry has sufficient capacity to accommodate new entries)&semi; otherwise, return the address of the non&hyphen;modifiable _Default_ _Category_&period; Return 0 if the logger manager singleton is not initialized&period;


[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&period;&period;&period;_]#

Load into the specified `categoryHolder` the address of the non&hyphen;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&period;e&period;, if the registry has sufficient capacity to accommodate new entries)&semi; otherwise, load the address of the non&hyphen;modifiable _Default_ _Category_&period; Also load into `categoryHolder` the maximum threshold level of the category ultimately loaded into `categoryHolder`&period; This method has no effect if the logger manager singleton is not initialized&period;


[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&period;&period;&period;_]#


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