Class representing a log message created by a log macro.
More...
#include <logging.h>
|
| LogMessage (const char *file, int line) |
| Constructs a new message with INFO severity. More...
|
|
| LogMessage (const char *file, int line, LogSeverity severity) |
| Constructs a new message with the specified severity. More...
|
|
| LogMessage (const char *file, int line, const std::string &result) |
| Constructs a log message with additional text that is provided by CHECK macros. More...
|
|
| ~LogMessage () |
| The destructor flushes the message. More...
|
|
std::ostringstream & | stream () |
| Gets a reference to the underlying string stream. More...
|
|
|
void | SendToLog (const std::string &message_text) |
|
Class representing a log message created by a log macro.
◆ LogMessage() [1/3]
asylo::LogMessage::LogMessage |
( |
const char * |
file, |
|
|
int |
line |
|
) |
| |
Constructs a new message with INFO
severity.
- Parameters
-
file | The source file that produced the log. |
line | The source code line that produced the log. |
◆ LogMessage() [2/3]
asylo::LogMessage::LogMessage |
( |
const char * |
file, |
|
|
int |
line, |
|
|
LogSeverity |
severity |
|
) |
| |
Constructs a new message with the specified severity.
- Parameters
-
file | The source file that produced the log. |
line | The source code line that produced the log. |
severity | The severity level of the log. |
◆ LogMessage() [3/3]
asylo::LogMessage::LogMessage |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const std::string & |
result |
|
) |
| |
Constructs a log message with additional text that is provided by CHECK macros.
- Parameters
-
file | The source file that produced the log. |
line | The source code line that produced the log. |
result | The result message when check fails. |
◆ ~LogMessage()
asylo::LogMessage::~LogMessage |
( |
| ) |
|
The destructor flushes the message.
◆ SendToLog()
void asylo::LogMessage::SendToLog |
( |
const std::string & |
message_text | ) |
|
|
protected |
◆ stream()
std::ostringstream& asylo::LogMessage::stream |
( |
| ) |
|
|
inline |
Gets a reference to the underlying string stream.
- Returns
- A reference to the underlying string stream.
◆ severity_
◆ stream_
std::ostringstream asylo::LogMessage::stream_ |
|
protected |
The documentation for this class was generated from the following file: