[#BloombergLP-bsls-Log-platformDefaultMessageHandler]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Log.adoc[Log]::platformDefaultMessageHandler
:relfileprefix: ../../../
:mrdocs:

Write, to a platform&hyphen;specific destination, a string composed of the specified `severity`, `file` name, `line` number, and `message`&period; On _non_&hyphen;Windows systems, write the log record to the `stderr` output stream&period; On _Windows_ systems&colon; If the current process is running in _console_ _mode_, write the log record to the `stderr` output stream&period; If the current process is running in _non&hyphen;console_ _mode_, write the log record to the Windows process debugger&period; The behavior is undefined unless `0 &lt;&equals; line`&period; Note that this function is used as the default log message handler&period; Also note that this function will write the message irrespective of the current `severityThreshold`&period;

== Synopsis

Declared in `&lt;bsls&lowbar;log&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
platformDefaultMessageHandler(
    xref:BloombergLP/bsls/LogSeverity/Enum.adoc[bsls::LogSeverity::Enum] severity,
    char const* file,
    int line,
    char const* message);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
