BloombergLP::bsls::Log::logFormattedMessage

Log a formatted message if its severity meets the threshold.

Synopsis

Declared in <bsls_log.h>

static
void
logFormattedMessage(
    bsls::LogSeverity::Enum severity,
    char const* file,
    int line,
    char const* format, ...);

Description

If the specified severity is at least as severe as severityThrehold, invoke the currently installed log message handler with severity and the specified file and line, as well as a message string created by calling sprintf on the specified format with the specified variadic arguments; otherwise (if severity is less severe), this operation has no effect. The behavior is undefined unless 0 <= line, and format is a valid sprintf format specification for the supplied variadic arguments.

Parameters

NameDescription
severityseverity of the log record
filesource file name associated with the record
linesource line number associated with the record
formatprintf-style format string for the message