Ion
|
This class is used for regular logging. More...
#include "logging.h"
Public Member Functions | |
Logger (const char *file_name, int line_number, port::LogSeverity severity) | |
~Logger () | |
std::ostream & | GetStream () |
Return the stream to which output is sent (or accumulated). More... | |
Static Public Member Functions | |
static const std::string | CheckMessage (const char *check_string, const char *expr_string) |
Returns a message that can be used in CHECK or DCHECK output. More... | |
This class is used for regular logging.
It sends messages to std::cerr by default, but that can be changed with SetLogEntryWriter(), which is a global override.
ion::base::logging_internal::Logger::Logger | ( | const char * | file_name, |
int | line_number, | ||
port::LogSeverity | severity | ||
) |
Definition at line 105 of file logging.cc.
ion::base::logging_internal::Logger::~Logger | ( | ) |
Definition at line 111 of file logging.cc.
References ion::base::GetLogEntryWriter(), ION_DECLARE_SAFE_STATIC_POINTER, and ion::port::LogEntryWriter::Write().
|
static |
Returns a message that can be used in CHECK or DCHECK output.
Definition at line 134 of file logging.cc.
Referenced by ion::base::logging_internal::CheckNotNullCommon().
std::ostream & ion::base::logging_internal::Logger::GetStream | ( | ) |
Return the stream to which output is sent (or accumulated).
Definition at line 132 of file logging.cc.