Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
kcenon::logger::structured::structured_log_entry Struct Reference

Structured log entry. More...

#include <structured_logger.h>

Collaboration diagram for kcenon::logger::structured::structured_log_entry:
Collaboration graph

Public Member Functions

 structured_log_entry ()
 

Public Attributes

log_level level
 
std::string message
 
std::unordered_map< std::string, log_valuefields
 
std::chrono::system_clock::time_point timestamp
 

Detailed Description

Structured log entry.

See also
structured_logger_interface
log_builder

Definition at line 39 of file structured_logger.h.

Constructor & Destructor Documentation

◆ structured_log_entry()

kcenon::logger::structured::structured_log_entry::structured_log_entry ( )
inline
Examples
/home/runner/work/logger_system/logger_system/include/kcenon/logger/structured/structured_logger.h.

Definition at line 45 of file structured_logger.h.

45: timestamp(std::chrono::system_clock::now()) {}
std::chrono::system_clock::time_point timestamp

Member Data Documentation

◆ fields

◆ level

◆ message

◆ timestamp

std::chrono::system_clock::time_point kcenon::logger::structured::structured_log_entry::timestamp

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