LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
logit::LogRecordSnapshot Struct Reference

Common owning snapshot of a stored log record. More...

#include <ILogReader.hpp>

Public Attributes

uint64_t session_id = 0
 Owning session id, or 0 if unused.
 
int64_t timestamp_ms = 0
 Log timestamp in milliseconds.
 
uint32_t sequence = 0
 Per-timestamp sequence, or 0 if unused.
 
LogLevel level = LogLevel::LOG_LVL_TRACE
 Log severity level.
 
std::string message
 Formatted message or payload preview.
 
uint64_t payload_id = 0
 Payload row id, or 0 when absent.
 
std::string file
 Source file path.
 
std::string function
 Source function name.
 
int line = 0
 Source line number.
 

Detailed Description

Common owning snapshot of a stored log record.

String fields are copied from the backend, so callers may store the snapshot by value without depending on backend locks or record lifetime.

Definition at line 24 of file ILogReader.hpp.

Member Data Documentation

◆ file

std::string logit::LogRecordSnapshot::file

Source file path.

Definition at line 31 of file ILogReader.hpp.

◆ function

std::string logit::LogRecordSnapshot::function

Source function name.

Definition at line 32 of file ILogReader.hpp.

◆ level

LogLevel logit::LogRecordSnapshot::level = LogLevel::LOG_LVL_TRACE

Log severity level.

Definition at line 28 of file ILogReader.hpp.

◆ line

int logit::LogRecordSnapshot::line = 0

Source line number.

Definition at line 33 of file ILogReader.hpp.

◆ message

std::string logit::LogRecordSnapshot::message

Formatted message or payload preview.

Definition at line 29 of file ILogReader.hpp.

◆ payload_id

uint64_t logit::LogRecordSnapshot::payload_id = 0

Payload row id, or 0 when absent.

Definition at line 30 of file ILogReader.hpp.

◆ sequence

uint32_t logit::LogRecordSnapshot::sequence = 0

Per-timestamp sequence, or 0 if unused.

Definition at line 27 of file ILogReader.hpp.

◆ session_id

uint64_t logit::LogRecordSnapshot::session_id = 0

Owning session id, or 0 if unused.

Definition at line 25 of file ILogReader.hpp.

◆ timestamp_ms

int64_t logit::LogRecordSnapshot::timestamp_ms = 0

Log timestamp in milliseconds.

Definition at line 26 of file ILogReader.hpp.


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