BloombergLP::ball::LoggerManager::setCategory

setCategory overloads

Synopses

Declared in <ball_loggermanager.h>

Return or create the category named categoryName.

Category const*
setCategory(char const* categoryName);
» more...

Return or create the category and optionally link a holder.

Category const*
setCategory(
    CategoryHolder* categoryHolder,
    char const* categoryName);
» more...

Create or update a category with the specified threshold levels.

Category*
setCategory(
    char const* categoryName,
    int recordLevel,
    int passLevel,
    int triggerLevel,
    int triggerAllLevel);
» 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

NameDescription
categoryNamename of the category to return or create
categoryHolderoptional holder to link to the returned category
recordLevelrecord threshold level
passLevelpass threshold level
triggerLeveltrigger threshold level
triggerAllLeveltrigger-all threshold level