summaryrefslogtreecommitdiffstats
path: root/src/core/content_main_delegate_qt.cpp
diff options
context:
space:
mode:
authorDongmei Wang <dongmei.wang@qt.io>2016-06-15 11:17:30 -0700
committerMichael BrĂ¼ning <michael.bruning@qt.io>2016-06-22 09:05:06 +0000
commit42e7196ca37c688eaadb55aba25e2bb56845a5ab (patch)
treefcb9c726b0583d54504a7ba971c72051ba607edb /src/core/content_main_delegate_qt.cpp
parent637f34d38b97cbfd5faf407756b32986a2607543 (diff)
Output VLOG messages with process and thread IDs
By default, process and thread IDs are not outputted in VLOG messages. Enable outputting process and thread IDs in VLOG messages, which makes it easier to debug in multi-process and multi-threaded environments. Change-Id: I5ca4c418d65d709908f20fc7dce1c3490c6e0a93 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/content_main_delegate_qt.cpp')
-rw-r--r--src/core/content_main_delegate_qt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/content_main_delegate_qt.cpp b/src/core/content_main_delegate_qt.cpp
index 5933f873b..a9c49ff2e 100644
--- a/src/core/content_main_delegate_qt.cpp
+++ b/src/core/content_main_delegate_qt.cpp
@@ -110,6 +110,12 @@ void ContentMainDelegateQt::PreSandboxStartup()
logging::LoggingSettings settings;
settings.logging_dest = DetermineLogMode(*parsedCommandLine);
logging::InitLogging(settings);
+ // view the logs with process/thread IDs and timestamps
+ logging::SetLogItems(true, //enable_process_id
+ true, //enable_thread_id
+ true, //enable_timestamp
+ false //enable_tickcount
+ );
if (logging::GetMinLogLevel() >= logging::LOG_INFO) {
if (parsedCommandLine->HasSwitch(switches::kLoggingLevel)) {