BloombergLP::ball::LoggerManager::logMessage

Publish and dispose of a record via the platform default handler.

Synopsis

Declared in <ball_loggermanager.h>

static
void
logMessage(
    int severity,
    Record* record);

Description

Publish the specified record using bsls::Log::platformDefaultMessageHandler after setting its severity attribute to the specified severity, and dispose of record. The behavior is undefined unless record was obtained by a call to the LoggerManager::getRecord method. Note that record will be invalid after this method returns.

Parameters

NameDescription
severityseverity level assigned to the record
recordrecord to publish and then dispose of