From e6e7581b313c2802542752a7f8d631f15e6e5754 Mon Sep 17 00:00:00 2001 From: lizzie Date: Fri, 16 Jan 2026 08:11:16 +0000 Subject: [PATCH] [common/log] reoder file:func:line to file:line:func for nicer IDE integration with logs Signed-off-by: lizzie --- src/common/logging/text_formatter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp index 17d94fe751..d4baabc451 100644 --- a/src/common/logging/text_formatter.cpp +++ b/src/common/logging/text_formatter.cpp @@ -23,13 +23,14 @@ namespace Common::Log { +// Some IDEs prefer : instead, so let's just do that :) std::string FormatLogMessage(const Entry& entry) { auto const time_seconds = uint32_t(entry.timestamp.count() / 1000000); auto const time_fractional = uint32_t(entry.timestamp.count() % 1000000); char const* class_name = GetLogClassName(entry.log_class); char const* level_name = GetLevelName(entry.log_level); return fmt::format("[{:4d}.{:06d}] {} <{}> {}:{}:{}: {}", time_seconds, time_fractional, - class_name, level_name, entry.filename, entry.function, entry.line_num, + class_name, level_name, entry.filename, entry.line_num, entry.function, entry.message); }