This class represents a message of the logger. More...
#include <Logger.hpp>
Public Member Functions | |
const int & | getIndentation () const |
Gets the indentation of the message. | |
const LogLevel & | getLogLevel () const |
Gets the LogLevel of the message. | |
const std::string & | getMessage () const |
Gets the message. | |
const std::string & | getPrefix () const |
Gets the prefix of the logger when the message was issued. | |
const time_t & | getTime () const |
Gets the time when the message was issued. | |
LogMessage (const LogLevel &logLevel, const time_t &time, const int &indentation, const std::string &prefix, const std::string &message) | |
Creates a new LogMessage. |
This class represents a message of the logger.
The LogMessage is sent by the Logger class to the LogOutput(s).
Definition at line 211 of file Logger.hpp.
mermaid::support::logging::LogMessage::LogMessage | ( | const LogLevel & | logLevel, | |
const time_t & | time, | |||
const int & | indentation, | |||
const std::string & | prefix, | |||
const std::string & | message | |||
) | [inline] |
Creates a new LogMessage.
logLevel | The level of the message. | |
time | The time when the message was issued. | |
indentation | Indentation level of the message for reporting levels. | |
prefix | The logger prefix when the message was issued. | |
message | The message to log. |
Definition at line 224 of file Logger.hpp.
const int& mermaid::support::logging::LogMessage::getIndentation | ( | ) | const [inline] |
Gets the indentation of the message.
Definition at line 256 of file Logger.hpp.
const LogLevel& mermaid::support::logging::LogMessage::getLogLevel | ( | ) | const [inline] |
Gets the LogLevel of the message.
Definition at line 240 of file Logger.hpp.
const std::string& mermaid::support::logging::LogMessage::getMessage | ( | ) | const [inline] |
const std::string& mermaid::support::logging::LogMessage::getPrefix | ( | ) | const [inline] |
Gets the prefix of the logger when the message was issued.
Definition at line 264 of file Logger.hpp.
const time_t& mermaid::support::logging::LogMessage::getTime | ( | ) | const [inline] |
Gets the time when the message was issued.
Definition at line 248 of file Logger.hpp.