From 4d97b2b85176743e76c4e5b38ed2d37f49c21442 Mon Sep 17 00:00:00 2001 From: Mario Hewardt Date: Wed, 9 Aug 2023 17:07:29 -0700 Subject: [PATCH] Add thread ID to logging --- profiler/src/ProcDumpProfiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/profiler/src/ProcDumpProfiler.cpp b/profiler/src/ProcDumpProfiler.cpp index f1c517f..babfead 100644 --- a/profiler/src/ProcDumpProfiler.cpp +++ b/profiler/src/ProcDumpProfiler.cpp @@ -213,6 +213,7 @@ CorProfiler::CorProfiler() : el::Loggers::reconfigureAllLoggers(el::ConfigurationType::Filename, LOG_FILE); el::Loggers::reconfigureAllLoggers(el::ConfigurationType::MaxLogFileSize, MAX_LOG_FILE_SIZE); el::Loggers::reconfigureAllLoggers(el::ConfigurationType::ToStandardOutput, "false"); + el::Loggers::reconfigureAllLoggers(el::ConfigurationType::Format, "%datetime %level [%thread] [%func] [%loc] %msg"); pthread_mutex_init(&endDumpCondition, NULL); }