From fe525d2b8603b1d641d8f206bc7196610b5c0b1f Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 13 Jun 2018 10:45:57 +0300 Subject: [PATCH] AppOutputPane: Add timestamps to normal and error messages Similar to BuildManager::addToOutputWindow. This doesn't affect stdout/stderr output. Change-Id: Iddee043aa46cc89860b4a2231fe075cb553b5ad3 Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/appoutputpane.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index d6644e12553..de0151e02d5 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -482,7 +482,13 @@ void AppOutputPane::appendMessage(RunControl *rc, const QString &out, Utils::Out const int index = indexOf(rc); if (index != -1) { Core::OutputWindow *window = m_runControlTabs.at(index).window; - window->appendMessage(out, format); + QString stringToWrite; + if (format == Utils::NormalMessageFormat || format == Utils::ErrorMessageFormat) { + stringToWrite = QTime::currentTime().toString(); + stringToWrite += QLatin1String(": "); + } + stringToWrite += out; + window->appendMessage(stringToWrite, format); if (format != Utils::NormalMessageFormat) { if (m_runControlTabs.at(index).behaviorOnOutput == Flash) flash();