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

Structured representation of a buffered log snapshot entry. More...

#include <BufferedLogEntry.hpp>

Public Attributes

LogLevel level = LogLevel::LOG_LVL_TRACE
 Severity of the log entry.
 
int64_t timestamp_ms = 0
 Wall-clock timestamp in milliseconds.
 
std::string file
 Source file path or leaf name.
 
int line = 0
 Source line number.
 
std::string function
 Function name captured at the call site.
 
std::string message
 Formatted message text stored in the buffer.
 

Detailed Description

Structured representation of a buffered log snapshot entry.

This is a small public DTO for snapshot-style APIs such as MemoryLogger and related query helpers.

Definition at line 17 of file BufferedLogEntry.hpp.

Member Data Documentation

◆ file

std::string logit::BufferedLogEntry::file

Source file path or leaf name.

Definition at line 20 of file BufferedLogEntry.hpp.

◆ function

std::string logit::BufferedLogEntry::function

Function name captured at the call site.

Definition at line 22 of file BufferedLogEntry.hpp.

◆ level

LogLevel logit::BufferedLogEntry::level = LogLevel::LOG_LVL_TRACE

Severity of the log entry.

Definition at line 18 of file BufferedLogEntry.hpp.

◆ line

int logit::BufferedLogEntry::line = 0

Source line number.

Definition at line 21 of file BufferedLogEntry.hpp.

◆ message

std::string logit::BufferedLogEntry::message

Formatted message text stored in the buffer.

Definition at line 23 of file BufferedLogEntry.hpp.

◆ timestamp_ms

int64_t logit::BufferedLogEntry::timestamp_ms = 0

Wall-clock timestamp in milliseconds.

Definition at line 19 of file BufferedLogEntry.hpp.


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