This class provides a namespace for low-level logging utilities.
Declared in <bsls_log.h>
class Log;
This class serves as a namespace containing a suite of utility functions that allow low-level code to write log messages to a configurable, globally controlled destination.
| Name | Description |
|---|---|
LogMessageHandler | Callback type invoked to handle log messages. |
| Name | Description |
|---|---|
logFormattedMessage | Log a formatted message if its severity meets the threshold. |
logMessage | Log an unformatted message if its severity meets the threshold. |
logMessageHandler | Return the address of the currently installed log message handler. |
platformDefaultMessageHandler | Write a formatted log record to a platform-specific destination. |
setLogMessageHandler | Install the specified handler as the current log message handler. |
setSeverityThreshold | Set the severity threshold at which log records are written by logMessage and logFormattedMessage to the specified severity. |
severityThreshold | Return the currently configured severity threshold at or above which records are written by logMessage and logFormattedMessage. |
stderrMessageHandler | Write a formatted log record to the stderr stream. |
stdoutMessageHandler | Write a formatted log record to the stdout stream. |