v1.3.0.0
WASimCommander::LogRecord Struct Reference

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. More...
 
void setMessage (const char *msg)
 Set the message member using a const char array. More...
 

Public Attributes

time_t timestamp
 ms since epoch. More...
 
WASimCommander::Enums::LogLevel level
 Message severity. More...
 
char message [STRSZ_LOG] = {0}
 The log message text. More...
 

Detailed Description

Log record structure.

See also
WASimCommander:CommandId::Log command.

Definition at line 250 of file WASimCommander.h.

Constructor & Destructor Documentation

◆ LogRecord()

WASimCommander::LogRecord::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() 
)
inlineexplicit

Default constructor with all parameters optional.

Definition at line 258 of file WASimCommander.h.

Member Function Documentation

◆ setMessage()

void WASimCommander::LogRecord::setMessage ( const char *  msg)
inline

Set the message member using a const char array.

Definition at line 264 of file WASimCommander.h.

Member Data Documentation

◆ timestamp

time_t WASimCommander::LogRecord::timestamp

ms since epoch.

Definition at line 252 of file WASimCommander.h.

◆ level

WASimCommander::Enums::LogLevel WASimCommander::LogRecord::level

Message severity.

Definition at line 253 of file WASimCommander.h.

◆ message

char WASimCommander::LogRecord::message[STRSZ_LOG] = {0}

The log message text.

Definition at line 254 of file WASimCommander.h.


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