#include <nap/logger.h>
Public Member Functions | |
LogMessage (const LogLevel &lvl, const std::string &msg) | |
LogMessage (const LogLevel &lvl, std::string &&msg) | |
const LogLevel & | level () const |
const std::string & | text () const |
const SystemTimeStamp & | getTimestamp () const |
A LogMessage is tagged with a log level. Optionally it stores the object that outputs the message.
LogMessage | ( | const LogLevel & | lvl, |
const std::string & | msg | ||
) |
Log message constructor
LogMessage | ( | const LogLevel & | lvl, |
std::string && | msg | ||
) |
Log message constructor, invoked when using temporary message (rvalue)
const SystemTimeStamp& getTimestamp | ( | ) | const |
const LogLevel& level | ( | ) | const |
const std::string& text | ( | ) | const |