Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::base::logging_internal::SingleLogger Class Reference

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...
 

Detailed Description

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.

Definition at line 110 of file logging.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void ion::base::logging_internal::SingleLogger::ClearMessages ( )
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.


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