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

Metadata for a persisted log file owned by a logger backend. More...

#include <LogFileInfo.hpp>

Public Attributes

std::string path
 Full path to the file.
 
std::string name
 File name without the parent directory.
 
int64_t day_start_ms = 0
 Start-of-day UTC timestamp derived from the file name.
 
bool is_current = false
 True when this is the file currently used for appends.
 
bool is_compressed = false
 True when the file is a compressed rotated artifact.
 

Detailed Description

Metadata for a persisted log file owned by a logger backend.

Definition at line 14 of file LogFileInfo.hpp.

Member Data Documentation

◆ day_start_ms

int64_t logit::LogFileInfo::day_start_ms = 0

Start-of-day UTC timestamp derived from the file name.

Definition at line 17 of file LogFileInfo.hpp.

◆ is_compressed

bool logit::LogFileInfo::is_compressed = false

True when the file is a compressed rotated artifact.

Definition at line 19 of file LogFileInfo.hpp.

◆ is_current

bool logit::LogFileInfo::is_current = false

True when this is the file currently used for appends.

Definition at line 18 of file LogFileInfo.hpp.

◆ name

std::string logit::LogFileInfo::name

File name without the parent directory.

Definition at line 16 of file LogFileInfo.hpp.

◆ path

std::string logit::LogFileInfo::path

Full path to the file.

Definition at line 15 of file LogFileInfo.hpp.


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