ChainCLI
A modern C++20 command-line interface library
Loading...
Searching...
No Matches
cli::logging::LogRecord Struct Reference

Data structure representing a log record. More...

#include <logrecord.h>

Public Member Functions

 LogRecord (LogLevel lvl, std::string msg)
 Construct a new LogRecord.
 

Public Attributes

const LogLevel level
 The log level of the record.
 
const std::string message
 The log message.
 
const std::chrono::system_clock::time_point timestamp {std::chrono::system_clock::now()}
 The timestamp of the log record.
 

Detailed Description

Data structure representing a log record.

Constructor & Destructor Documentation

◆ LogRecord()

cli::logging::LogRecord::LogRecord ( LogLevel  lvl,
std::string  msg 
)
inline

Construct a new LogRecord.

Parameters
lvlThe log level of the record.
msgThe log message.

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