Add a category with the specified name and threshold levels.
Declared in <ball_loggermanager.h>
Category*
addCategory(
char const* categoryName,
int recordLevel,
int passLevel,
int triggerLevel,
int triggerAllLevel);
Add to the category registry of this logger manager a new category having the specified categoryName and the specified recordLevel, passLevel, triggerLevel, and triggerAllLevel threshold levels, respectively, if (1) categoryName is not present in the registry, (2) the number of categories in the registry is less than the registry capacity, and (3) each threshold level is in the range [0 .. 255]. Return the address of the new modifiable category on success, and 0 otherwise. The behavior is undefined unless categoryName is null-terminated.
address of the new modifiable category on success, and 0 otherwise
| Name | Description |
|---|---|
| categoryName | name of the category to add |
| recordLevel | record threshold level |
| passLevel | pass threshold level |
| triggerLevel | trigger threshold level |
| triggerAllLevel | trigger-all threshold level |