[#BloombergLP-ball-LoggerManager-setCategory-07f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::setCategory :relfileprefix: ../../../ :mrdocs: `setCategory` overloads == Synopses Declared in `<ball_loggermanager.h>` Return or create the category named `categoryName`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Category.adoc[Category] const* xref:BloombergLP/ball/LoggerManager/setCategory-07c.adoc[setCategory](char const* categoryName); ---- [.small]#xref:BloombergLP/ball/LoggerManager/setCategory-07c.adoc[_» more..._]# Return or create the category and optionally link a holder. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Category.adoc[Category] const* xref:BloombergLP/ball/LoggerManager/setCategory-03.adoc[setCategory]( xref:BloombergLP/ball/CategoryHolder.adoc[CategoryHolder]* categoryHolder, char const* categoryName); ---- [.small]#xref:BloombergLP/ball/LoggerManager/setCategory-03.adoc[_» more..._]# Create or update a category with the specified threshold levels. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Category.adoc[Category]* xref:BloombergLP/ball/LoggerManager/setCategory-07e.adoc[setCategory]( char const* categoryName, int recordLevel, int passLevel, int triggerLevel, int triggerAllLevel); ---- [.small]#xref:BloombergLP/ball/LoggerManager/setCategory-07e.adoc[_» more..._]# == Return Value * address of the category named `categoryName`, or of the _Default_ _Category_ * address of the category if created or thresholds reset, and 0 otherwise == Parameters [cols="1,4"] |=== | Name| Description | *categoryName* | name of the category to return or create | *categoryHolder* | optional holder to link to the returned category | *recordLevel* | record threshold level | *passLevel* | pass threshold level | *triggerLevel* | trigger threshold level | *triggerAllLevel* | trigger‐all threshold level |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#