BloombergLP::bsls::Log::stderrMessageHandler

Write a formatted log record to the stderr stream.

Synopsis

Declared in <bsls_log.h>

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

Description

Write, to the stderr output stream, a string composed of the specified severity, file name, line number, and the message. The behavior is undefined unless 0 <= line. Note that this function provides an implementation of the LogMessageHandler function prototype, and will write the message irrespective of the current severityThreshold.

Parameters

NameDescription
severityseverity of the log record
filesource file name associated with the record
linesource line number associated with the record
messagelog message text