Log record structure. More...
#include "WASimCommander.h"
Public Member Functions | |
| LogRecord (const WASimCommander::Enums::LogLevel level=WASimCommander::Enums::LogLevel::None, const char *msg=nullptr, const std::chrono::system_clock::time_point &tp=std::chrono::system_clock::now()) | |
| Default constructor with all parameters optional. | |
| void | setMessage (const char *msg) |
Set the message member using a const char array. | |
Public Attributes | |
| time_t | timestamp |
| ms since epoch. | |
| WASimCommander::Enums::LogLevel | level |
| Message severity. | |
| char | message [STRSZ_LOG] = {0} |
| The log message text. | |
Log record structure.
Definition at line 250 of file WASimCommander.h.
|
inlineexplicit |
Default constructor with all parameters optional.
Definition at line 258 of file WASimCommander.h.
|
inline |
Set the message member using a const char array.
Definition at line 264 of file WASimCommander.h.
| time_t WASimCommander::LogRecord::timestamp |
ms since epoch.
Definition at line 252 of file WASimCommander.h.
| WASimCommander::Enums::LogLevel WASimCommander::LogRecord::level |
Message severity.
Definition at line 253 of file WASimCommander.h.
| char WASimCommander::LogRecord::message[STRSZ_LOG] = {0} |
The log message text.
Definition at line 254 of file WASimCommander.h.