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

Write a formatted log record to the `stderr` stream&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
stderrMessageHandler(
    xref:BloombergLP/bsls/LogSeverity/Enum.adoc[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`&period; The behavior is undefined unless `0 &lt;&equals; line`&period; Note that this function provides an implementation of the `LogMessageHandler` function prototype, and will write the message irrespective of the current `severityThreshold`&period;

== Parameters

[cols="1,4"]
|===
| 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
|===


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