From b414913c73eb2b4711a8cc7c204c8d4cb5fa9e13 Mon Sep 17 00:00:00 2001 From: stickies-v Date: Tue, 10 Mar 2026 14:12:14 +0800 Subject: [PATCH] util: add timestamp and thread_name to log::Entry --- src/util/log.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/log.h b/src/util/log.h index 641b81ff353..38214f967cc 100644 --- a/src/util/log.h +++ b/src/util/log.h @@ -10,6 +10,8 @@ #include // IWYU pragma: export #include #include +#include +#include #include #include @@ -53,6 +55,8 @@ struct Entry { Category category; Level level; bool should_ratelimit{false}; //!< Hint for consumers if this entry should be ratelimited + SystemClock::time_point timestamp{SystemClock::now()}; + std::string thread_name{util::ThreadGetInternalName()}; SourceLocation source_loc; std::string message; };