BloombergLP::ball::LoggerManagerDefaults

This class provides constrained configuration parameters for a logger manager. The constraints are maintained as class invariants; it is not possible to obtain an invalid object through this interface.

Synopsis

Declared in <ball_loggermanagerdefaults.h>

class LoggerManagerDefaults;

Description

More generally, this class supports a complete set of value semantic operations, including copy construction, assignment, equality comparison, ostream printing. (A precise operational definition of when two instances have the same value can be found in the description of operator== for the class.) This class is exception neutral with no guarantee of rollback: if an exception is thrown during the invocation of a method on a pre-existing instance, the object is left in a valid state, but its value is undefined. In no event is memory leaked. Finally, aliasing (e.g., using all or part of an object as both source and destination) is supported in all cases.

Member Functions

NameDescription
LoggerManagerDefaults [constructor]Constructors
~LoggerManagerDefaults [destructor]Destroy this logger manager default-values constrained-attribute object.
operator= Assign to this logger manager default-values constrained-attribute object the value of the specified rhs object.
defaultLoggerBufferSize Return the default logger-message-buffer size attribute of this object.
defaultPassLevel Return the default pass threshold level attribute of this object.
defaultRecordBufferSize Return the default-logger record-buffer size attribute of this object.
defaultRecordLevel Return the default record threshold level attribute of this object.
defaultTriggerAllLevel Return the default trigger-all threshold level attribute of this object.
defaultTriggerLevel Return the default trigger threshold level attribute of this object.
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, suppress all indentation AND format the entire output on one line. If stream is not valid on entry, this operation has no effect.
setDefaultLoggerBufferSizeIfValid Set the default logger-message-buffer size attribute of this object to the specified numBytes if 0 < numBytes. Return 0 on success, and a non-zero value (with no effect on the state of this object) otherwise.
setDefaultRecordBufferSizeIfValid Set the default-logger record-buffer size attribute of this object to the specified numBytes if 0 < numBytes. Return 0 on success, and a non-zero value (with no effect on the state of this object) otherwise.
setDefaultThresholdLevelsIfValid setDefaultThresholdLevelsIfValid overloads

Static Member Functions

NameDescription
areValidDefaultThresholdLevels Return true if each of the specified recordLevel, passLevel, triggerLevel, and triggerAllLevel values is a valid default severity threshold level attributes, and false otherwise. Valid severity threshold level values are in the range [0 .. 255].
defaultDefaultLoggerBufferSize Return the implementation-defined default logger-message-buffer size value for this class.
defaultDefaultPassLevel Return the implementation-defined default pass threshold level value for this class.
defaultDefaultRecordBufferSize Return the implementation-defined default-logger record-buffer size value for this class.
defaultDefaultRecordLevel Return the implementation-defined default record threshold level value for this class.
defaultDefaultTriggerAllLevel Return the implementation-defined default trigger-all threshold value for this class.
defaultDefaultTriggerLevel Return the implementation-defined default trigger threshold level value for this class.
isValidDefaultLoggerBufferSize Return true if the specified numBytes is a valid default logger-message-buffer size attribute, and false otherwise. numBytes is valid if 0 < numBytes.
isValidDefaultRecordBufferSize Return true if the specified numBytes is a valid default-logger record-buffer size attribute, and false otherwise. numBytes is valid if 0 < numBytes.

Friends

NameDescription
BloombergLP::ball::operator==Return true if the specified lhs and rhs attribute objects have the same value, and false otherwise. Two attribute objects objects have the same value if each respective attribute has the same value.
BloombergLP::ball::operator<<Write the specified defaults object to the specified output stream in a reasonable multi-line format.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and rhs attribute objects do not have the same value, and false otherwise. Two attribute objects do not have the same value if one or more respective attributes differ in values.