From 1a94b17970652fa832bebb0293c6be58dcadb263 Mon Sep 17 00:00:00 2001 From: Ben <987807597@qq.com> Date: Mon, 6 Jul 2026 01:03:03 -0700 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=A0=BC=E5=BC=8F=E5=8A=A0?= =?UTF-8?q?=E7=BA=BF=E7=A8=8Bid(%t),=E7=94=A8=E4=BA=8E=E5=8C=BA=E5=88=86UI?= =?UTF-8?q?/=E5=B7=A5=E4=BD=9C/SDK=E5=9B=9E=E8=B0=83=E7=BA=BF=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/Logger.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/Logger.h b/src/utils/Logger.h index 12145cd..539d983 100644 --- a/src/utils/Logger.h +++ b/src/utils/Logger.h @@ -50,7 +50,8 @@ public: auto logger = std::make_shared("VizumCameraKit", sinks.begin(), sinks.end()); logger->set_level(spdlog::level::debug); - logger->set_pattern("[%Y-%m-%d %H:%M:%S.%e] [%^%l%$] [%s:%#] %v"); + // %t = 线程 id,用于区分 UI 线程 / 工作线程 / SDK 回调线程 + logger->set_pattern("[%Y-%m-%d %H:%M:%S.%e] [%^%l%$] [t%t] [%s:%#] %v"); spdlog::set_default_logger(logger); spdlog::flush_on(spdlog::level::warn);