LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
BufferedLogEntry.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_BUFFEREDLOGENTRY_HPP_INCLUDED
3#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_BUFFEREDLOGENTRY_HPP_INCLUDED
4
7
8#include <cstdint>
9#include <string>
10
11namespace logit {
12
19 int64_t timestamp_ms = 0;
20 std::string file;
21 int line = 0;
22 std::string function;
23 std::string message;
24 };
25
26} // namespace logit
27
28#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_BUFFEREDLOGENTRY_HPP_INCLUDED
The primary namespace for the LogIt++ library.
LogLevel
Logging levels.
Definition enums.hpp:15
@ LOG_LVL_TRACE
Trace level logging.
Structured representation of a buffered log snapshot entry.
LogLevel level
Severity of the log entry.
std::string file
Source file path or leaf name.
int64_t timestamp_ms
Wall-clock timestamp in milliseconds.
int line
Source line number.
std::string function
Function name captured at the call site.
std::string message
Formatted message text stored in the buffer.