Log a formatted message if its severity meets the threshold.
Declared in <bsls_log.h>
static
void
logFormattedMessage(
bsls::LogSeverity::Enum severity,
char const* file,
int line,
char const* format, ...);
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.
| Name | Description |
|---|---|
| severity | severity of the log record |
| file | source file name associated with the record |
| line | source line number associated with the record |
| format | printf-style format string for the message |