Log an unformatted message if its severity meets the threshold.

Synopsis

Declared in <bsls_log.h>

static
void
logMessage(
    bsls::LogSeverity::Enum severity,
    char const* file,
    int line,
    char const* message);

Description

If the specified severity is at least as severe as severityThreshold, invoke the currently installed log message handler with severity, as well as the specified file, line, and message; otherwise (if severity is less severe), this operation has no effect. The behavior is undefined unless 0 <= line.

Parameters

Name

Description

severity

severity of the log record

file

source file name associated with the record

line

source line number associated with the record

message

log message text

Created with MrDocs