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

This class provides a namespace for low&hyphen;level logging utilities&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Log;
----

== Description

This class serves as a namespace containing a suite of utility functions that allow low&hyphen;level code to write log messages to a configurable, globally controlled destination&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsls/Log/LogMessageHandler-05.adoc[`LogMessageHandler`] 
| Callback type invoked to handle log messages&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsls/Log/logFormattedMessage.adoc[`logFormattedMessage`] 
| Log a formatted message if its severity meets the threshold&period;
| xref:BloombergLP/bsls/Log/logMessage.adoc[`logMessage`] 
| Log an unformatted message if its severity meets the threshold&period;
| xref:BloombergLP/bsls/Log/logMessageHandler-08.adoc[`logMessageHandler`] 
| Return the address of the currently installed log message handler&period;
| xref:BloombergLP/bsls/Log/platformDefaultMessageHandler.adoc[`platformDefaultMessageHandler`] 
| Write a formatted log record to a platform&hyphen;specific destination&period;
| xref:BloombergLP/bsls/Log/setLogMessageHandler.adoc[`setLogMessageHandler`] 
| Install the specified `handler` as the current log message handler&period;
| xref:BloombergLP/bsls/Log/setSeverityThreshold.adoc[`setSeverityThreshold`] 
| Set the severity threshold at which log records are written by `logMessage` and `logFormattedMessage` to the specified `severity`&period;
| xref:BloombergLP/bsls/Log/severityThreshold.adoc[`severityThreshold`] 
| Return the currently configured severity threshold at or above which records are written by `logMessage` and `logFormattedMessage`&period;
| xref:BloombergLP/bsls/Log/stderrMessageHandler.adoc[`stderrMessageHandler`] 
| Write a formatted log record to the `stderr` stream&period;
| xref:BloombergLP/bsls/Log/stdoutMessageHandler.adoc[`stdoutMessageHandler`] 
| Write a formatted log record to the `stdout` stream&period;
|===



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