LogMessageBase is a base class to be used to customize messages for logging textual information can be put into a log message by using the << operator in general the message class will output all of its information when the destructor is being invoked, formats the incoming message to timestamp it and adds information about the logger.
More...
#include <LogMessageBase.h>
|
std::string | getMessage () |
|
void | flush () |
| write the current message to the logger
|
|
LogMessageBase is a base class to be used to customize messages for logging textual information can be put into a log message by using the << operator in general the message class will output all of its information when the destructor is being invoked, formats the incoming message to timestamp it and adds information about the logger.
§ LogMessageBase()
SurgSim::Framework::LogMessageBase::LogMessageBase |
( |
Logger * |
logger, |
|
|
int |
level |
|
) |
| |
Construct a LogMessage.
- Parameters
-
logger | The logger to be used |
level | The logging level for this message |
§ getMessage()
std::string SurgSim::Framework::LogMessageBase::getMessage |
( |
| ) |
|
|
inlineprotected |
- Returns
- the current content of the message to be logged
§ operator<<()
template<typename T >
LogMessageBase& SurgSim::Framework::LogMessageBase::operator<< |
( |
T && |
input | ) |
|
|
inline |
Add the given input to the current log message.
- Parameters
-
input | The input to be added to the current stream |
The documentation for this class was generated from the following files: