Asylo
Public Member Functions | List of all members
asylo::LogMessageFatal Class Reference

A LogSeverity FATAL (or QFATAL) version of LogMessage that the compiler can interpret as noreturn. More...

#include <logging.h>

Inheritance diagram for asylo::LogMessageFatal:
Inheritance graph
[legend]
Collaboration diagram for asylo::LogMessageFatal:
Collaboration graph
[legend]

Public Member Functions

ABSL_ATTRIBUTE_NORETURN ~LogMessageFatal ()
 The destructor flushes the message and does not return. More...
 
 LogMessageFatal (const char *file, int line, LogSeverity severity)
 Constructs a new message with FATAL severity. More...
 
 LogMessageFatal (const char *file, int line, const std::string &result)
 Constructs a message with FATAL severity for use by CHECK macros. More...
 
- Public Member Functions inherited from asylo::LogMessage
 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...
 

Additional Inherited Members

- Protected Member Functions inherited from asylo::LogMessage
void SendToLog (const std::string &message_text)
 
- Protected Attributes inherited from asylo::LogMessage
LogSeverity severity_
 
std::ostringstream stream_
 

Detailed Description

A LogSeverity FATAL (or QFATAL) version of LogMessage that the compiler can interpret as noreturn.

Constructor & Destructor Documentation

◆ ~LogMessageFatal()

ABSL_ATTRIBUTE_NORETURN asylo::LogMessageFatal::~LogMessageFatal ( )

The destructor flushes the message and does not return.

◆ LogMessageFatal() [1/2]

asylo::LogMessageFatal::LogMessageFatal ( const char *  file,
int  line,
LogSeverity  severity 
)
inline

Constructs a new message with FATAL severity.

Parameters
fileThe source file that produced the log.
lineThe source code line that produced the log.
severityThe severity for the message (FATAL or QFATAL).

◆ LogMessageFatal() [2/2]

asylo::LogMessageFatal::LogMessageFatal ( const char *  file,
int  line,
const std::string &  result 
)
inline

Constructs a message with FATAL severity for use by CHECK macros.

Parameters
fileThe source file that produced the log.
lineThe source code line that produced the log.
resultThe result message when check fails.

The documentation for this class was generated from the following file: