BloombergLP::ball::LoggerFunctorPayloads::loadParentCategoryThresholdValues

Load threshold levels from the nearest hierarchical parent category.

Synopsis

Declared in <ball_loggerfunctorpayloads.h>

static
void
loadParentCategoryThresholdValues(
    int* recordLevel,
    int* passLevel,
    int* triggerLevel,
    int* triggerAllLevel,
    char const* categoryName,
    char delimiter);

Description

Load into the specified recordLevel, passLevel, triggerLevel, and triggerAllLevel the respective threshold levels of the category in the registry of the (singleton) ball logger manager that is the most proximate parent category of the category having the specified categoryName among existing hierarchically named categories in the registry, if such a parent category exists, or the default thresholds otherwise; use the specified delimiter to define hierarchical category names. The behavior is undefined unless the logger manager singleton has been initialized and is not in the process of being shut down.

Parameters

NameDescription
recordLevelloaded with the parent (or default) record threshold
passLevelloaded with the parent (or default) pass threshold
triggerLevelloaded with the parent (or default) trigger threshold
triggerAllLevelloaded with the parent (or default) trigger-all threshold
categoryNamehierarchical name whose parent thresholds are sought
delimitercharacter that separates hierarchical name components