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

This class prints a message only if the passed file_name and line_number has not printed a message in a certain amount of time. More...

#include "logging.h"

Public Member Functions

 ThrottledLogger (const char *file_name, int line_number, port::LogSeverity severity, float seconds)
 
 ~ThrottledLogger ()
 
std::ostream & GetStream ()
 Return the stream to which output is sent (or accumulated). More...
 

Detailed Description

This class prints a message only if the passed file_name and line_number has not printed a message in a certain amount of time.

Any creations with the same parameters (regardless of severity) within that time window will not print a message.

Definition at line 133 of file logging.h.

Constructor & Destructor Documentation

ion::base::logging_internal::ThrottledLogger::ThrottledLogger ( const char *  file_name,
int  line_number,
port::LogSeverity  severity,
float  seconds 
)

Definition at line 170 of file logging.cc.

ion::base::logging_internal::ThrottledLogger::~ThrottledLogger ( )

Definition at line 176 of file logging.cc.

Member Function Documentation

std::ostream & ion::base::logging_internal::ThrottledLogger::GetStream ( )

Return the stream to which output is sent (or accumulated).

Definition at line 178 of file logging.cc.


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