<table><tr><td style="">andreylegayev updated this revision to Diff 79247.<br />andreylegayev edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-5xl3neah756msmg/">(Show Details)</a><br />andreylegayev added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28495">View Revision</a></tr></table><br /><div><div><p>The variable QT_MESSAGE_PATTERN didn't impact output format, because of custom message handler.<br />
I've rolled back my changes and added a call to <tt style="background: #ebebeb; font-size: 13px;">qFormatLogMessage()</tt> to add timestamp and all other information to log messages.<br />
Please review when you have time.</p>

<p>I've tested this change on KDE Neon Developer Unstable - works fine.<br />
But on windows it doesn't work for me so far.</p></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>2. <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Set environment variable KLEOPATRA_LOGOPTIONS=timestamp</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Enable debug logs output by setting `QT_LOGGING_RULES="org.kde.pim.kleopatra.debug=true"`<br />
2. Set environment variable `QT_MESSAGE_PATTERN="%{time yyyyMMdd h:mm:ss.zzz t} - %{if-category}%{category}: %{endif} - %{file}:%{line} - %{message}"`</span><br />
3. Check logs - timestamp should appear before log messages</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R168 Kleopatra</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D28495?vs=79088&id=79247">https://phabricator.kde.org/D28495?vs=79088&id=79247</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28495">https://phabricator.kde.org/D28495</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/utils/log.cpp</div></div></div><br /><div><strong>To: </strong>andreylegayev, aheinecke<br /><strong>Cc: </strong>knauss, kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, dvratil<br /></div>