Write a formatted log record to a platform‐specific destination.
Synopsis
Declared in <bsls_log.h>
static
void
platformDefaultMessageHandler(
bsls::LogSeverity::Enum severity,
char const* file,
int line,
char const* message);
Description
Write, to a platform‐specific destination, a string composed of the specified severity, file name, line number, and message. On non‐Windows systems, write the log record to the stderr output stream. On Windows systems: If the current process is running in console mode, write the log record to the stderr output stream. If the current process is running in non‐console mode, write the log record to the Windows process debugger. The behavior is undefined unless 0 <= line. Note that this function is used as the default log message handler. Also note that this function will write the message irrespective of the current severityThreshold.
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