Return or create the named category in the logger manager registry.

Synopsis

Declared in <ball_log.h>

static
Category const*
setCategory(char const* categoryName);

Description

Return from the logger manager singleton's category registry the address of the non‐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.e., if the registry has sufficient capacity to accommodate new entries); otherwise, return the address of the non‐modifiable Default Category. Return 0 if the logger manager singleton is not initialized.

Return Value

address of the named category, the Default Category, or 0

Parameters

Name

Description

categoryName

name of the category to look up or create

Created with MrDocs