BloombergLP::ball::Logger

This class provides log record management services.

Synopsis

Declared in <ball_loggermanager.h>

class Logger;

Description

This class provides log record management services. Each instance of Logger receives log records from one or more clients, manages the storage of those records, and transmits them to a registered recipient (i.e., an observer) when appropriate.

Type Aliases

NameDescription
PublishAllTriggerCallback Functor invoked to publish all logger record buffers.
UserFieldsPopulatorCallback UserFieldsPopulatorCallback is the type of a user-supplied callback functor used to populate the user-defined fields in each log record.

Member Functions

NameDescription
getRecord Return a modifiable record from this logger's object pool.
logMessage logMessage overloads
messageBuffer Return the address of the modifiable message buffer.
messageBufferSize Return the size, in bytes, of the message buffer managed by this logger.
numRecordsInUse Return a snapshot of number of records that have been dispensed by getRecord but have not yet been supplied (returned) using logRecord.
obtainMessageBuffer obtainMessageBuffer overloads
publish Publish all buffered records with cause MANUAL_PUBLISH.
removeAll Remove all log records from the record buffer of this logger.

Friends

NameDescription
BloombergLP::ball::LoggerManagerThis class is usually a singleton factory for Logger objects.