ZeroErr
zeroerr::LogMessage Struct Referenceabstract

LogMessage is a class to store the log message. More...

#include <log.h>

Inheritance diagram for zeroerr::LogMessage:
Collaboration diagram for zeroerr::LogMessage:

Public Member Functions

 LogMessage ()
 
virtual std::string str () const =0
 
virtual void * getRawLog (std::string name) const =0
 
virtual std::map< std::string, std::string > getData () const =0
 

Public Attributes

const LogInfoinfo
 
std::chrono::system_clock::time_point time
 

Detailed Description

LogMessage is a class to store the log message.

LogMessage is a class to store the log message and a base class for all the messages implementation. You can create a log message with any type of arguments and it will store the arguments in a tuple. The log message can be converted to a string with the str() function. You can also get the raw pointer of the arguments with the getRawLog() function.

Constructor & Destructor Documentation

◆ LogMessage()

zeroerr::LogMessage::LogMessage ( )
inline

Member Function Documentation

◆ getData()

virtual std::map<std::string, std::string> zeroerr::LogMessage::getData ( ) const
pure virtual

◆ getRawLog()

virtual void* zeroerr::LogMessage::getRawLog ( std::string  name) const
pure virtual

◆ str()

virtual std::string zeroerr::LogMessage::str ( ) const
pure virtual

Member Data Documentation

◆ info

const LogInfo* zeroerr::LogMessage::info

◆ time

std::chrono::system_clock::time_point zeroerr::LogMessage::time

The documentation for this struct was generated from the following file: