Ion
|
This class prints a message only the first time it is created for the passed file_name
and line_number
.
More...
#include "logging.h"
Public Member Functions | |
SingleLogger (const char *file_name, int line_number, port::LogSeverity severity) | |
~SingleLogger () | |
std::ostream & | GetStream () |
Return the stream to which output is sent (or accumulated). More... | |
Static Public Member Functions | |
static void | ClearMessages () |
Clears the set of messages that have been logged. More... | |
This class prints a message only the first time it is created for the passed file_name
and line_number
.
Subsequent creations with the same parameters (regardless of severity) will not print a message.
ion::base::logging_internal::SingleLogger::SingleLogger | ( | const char * | file_name, |
int | line_number, | ||
port::LogSeverity | severity | ||
) |
Definition at line 145 of file logging.cc.
ion::base::logging_internal::SingleLogger::~SingleLogger | ( | ) |
Definition at line 151 of file logging.cc.
|
static |
Clears the set of messages that have been logged.
This means that the next LOG_ONCE calls will succeed, once.
Definition at line 153 of file logging.cc.
std::ostream & ion::base::logging_internal::SingleLogger::GetStream | ( | ) |
Return the stream to which output is sent (or accumulated).
Definition at line 158 of file logging.cc.