BloombergLP::ball::HierarchicalCategorySetting

This class represents a hierarchical category setting that consists of a category name prefix and 4 threshold level settings for categories whose name starts with that prefix. Instances of HierarchicalCategorySetting are created and manipulated by LoggerManager. All threshold levels are integral values in the range [0 .. 255].

Synopsis

Declared in <ball_hierarchicalcategorysetting.h>

class HierarchicalCategorySetting;

Type Aliases

NameDescription
allocator_type This typedef is an alias for the allocator used by this object.

Member Functions

NameDescription
HierarchicalCategorySetting [constructor]Constructors
operator= Assignment operators
categoryPrefix Return the name prefix of this hierarchical category setting.
get_allocator Return the allocator used by this object to supply memory.
passLevel Return the pass level of this hierarchical category setting.
print Format this object to the specified output stream at the (absolute value of) the optionally specified indentation level and return a reference to stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect. Note that the format is not fully specified, and can change without notice.
recordLevel Return the record level of this hierarchical category setting.
setLevels Set the threshold levels of this hierarchical category settings object to the specified recordLevel, passLevel, triggerLevel, and triggerAllLevel values, respectively, if each of the specified values is in the range [0 .. 255]. Return 0 on success, and a non-zero value otherwise (with no effect on the threshold levels of this object).
triggerAllLevel Return the trigger-all level of this hierarchical category setting.
triggerLevel Return the trigger level of this hierarchical category setting.

Friends

NameDescription
BloombergLP::ball::operator!=Return true if the specified lhs and rhs hierarchical category settings do not have the same value, and false otherwise. Two such objects differ in value if their category name prefix or threshold values differ.
BloombergLP::ball::operator==Return true if the specified lhs and rhs hierarchical category settings have the same value, and false otherwise. Two such objects have the same value if they have the same category name prefix and threshold values.