LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
LogFileInfo.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_LOGFILEINFO_HPP_INCLUDED
3#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_LOGFILEINFO_HPP_INCLUDED
4
7
8#include <string>
9#include <cstdint>
10
11namespace logit {
12
14 struct LogFileInfo {
15 std::string path;
16 std::string name;
17 int64_t day_start_ms = 0;
18 bool is_current = false;
19 bool is_compressed = false;
20 };
21
22} // namespace logit
23
24#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_LOGFILEINFO_HPP_INCLUDED
The primary namespace for the LogIt++ library.
Metadata for a persisted log file owned by a logger backend.
std::string name
File name without the parent directory.
bool is_current
True when this is the file currently used for appends.
int64_t day_start_ms
Start-of-day UTC timestamp derived from the file name.
std::string path
Full path to the file.
bool is_compressed
True when the file is a compressed rotated artifact.