Misc updates

This commit is contained in:
Aaron Po
2026-05-20 01:53:08 -04:00
parent 20742bb613
commit e251e7b2a3
5 changed files with 62 additions and 47 deletions

View File

@@ -10,8 +10,10 @@
#define BIERGARTEN_PIPELINE_INCLUDES_SERVICES_LOGGING_LOG_ENTRY_H_
#include <chrono>
#include <thread>
#include <source_location>
#include <string>
#include <thread>
#include <vector>
/**
* @enum LogLevel
@@ -53,6 +55,12 @@ struct LogEntry {
std::chrono::system_clock::time_point timestamp =
std::chrono::system_clock::now();
/// @brief Source location where the log call was made.
std::source_location origin = std::source_location::current();
/// @brief Thread responsible for emitting the log.
std::thread::id thread_id = std::this_thread::get_id();
/// @brief Severity level of this entry.
LogLevel level;
@@ -65,4 +73,4 @@ struct LogEntry {
};
#endif // BIERGARTEN_PIPELINE_INCLUDES_SERVICES_LOGGING_LOG_ENTRY_H_
#endif // BIERGARTEN_PIPELINE_INCLUDES_SERVICES_LOGGING_LOG_ENTRY_H_