| Elements
    6.2
    A C++ base framework for the Euclid Software. | 
A helper class for logging messages using the "<<" operator. More...

| Public Member Functions | |
| LogMessageStream (log4cpp::Category &logger, P_log_func log_func) | |
| LogMessageStream (LogMessageStream &&other) | |
| LogMessageStream (const LogMessageStream &other) | |
| ~LogMessageStream () | |
| template<typename T > | |
| LogMessageStream & | operator<< (const T &m) | 
| Private Types | |
| using | P_log_func = void(log4cpp::Category::*)(const std::string &) | 
| Private Attributes | |
| log4cpp::Category & | m_logger | 
| P_log_func | m_log_func | 
| std::stringstream | m_message {} | 
A helper class for logging messages using the "<<" operator.
Each instance of the LogMessageStream class is used for logging one single message. It keeps a reference of the logger to use and a pointer of the related function (to allow different logging levels). The message is logged during the destruction of the object. Instances can only be retrieved by using the Elements::Logging::debug, Elements::Logging::info, etc methods.
| 
 | private | 
| Elements::Logging::LogMessageStream::LogMessageStream | ( | log4cpp::Category & | logger, | 
| P_log_func | log_func | ||
| ) | 
| Doxygen_Suppress Elements::Logging::LogMessageStream::LogMessageStream | ( | LogMessageStream && | other | ) | 
Definition at line 103 of file Logging.cpp.
| Elements::Logging::LogMessageStream::LogMessageStream | ( | const LogMessageStream & | other | ) | 
Definition at line 106 of file Logging.cpp.
References m_log_func.
| Elements::Logging::LogMessageStream::~LogMessageStream | ( | ) | 
Definition at line 109 of file Logging.cpp.
| 
 | inline | 
Definition at line 321 of file Logging.h.
References Elements::Kernel::Units::m.
| 
 | private | 
Definition at line 328 of file Logging.h.
Referenced by LogMessageStream().
| 
 | private | 
| 
 | private | 
 1.8.17
 1.8.17