D28495: Add support of timestamp to logging

Andrey Legayev noreply at phabricator.kde.org
Wed Apr 1 21:23:05 BST 2020


andreylegayev created this revision.
Herald added a project: KDE PIM.
Herald added a subscriber: kde-pim.
andreylegayev requested review of this revision.

REVISION SUMMARY
  Sometimes Kleopatra starts very slow on windows and get stuck sometimes.
  Current version doesn't write timestamps to log file and it's hard to understand what exactly operation is slowing it down.
  I've implented writing timestamp before message. 
  New feature can be enabled via setting environment variable KLEOPATRA_LOGOPTIONS=timestamp

TEST PLAN
  1. Enable logs by setting environment variable KLEOPATRA_LOGDIR=/your/log/path
  2. Set environment variable KLEOPATRA_LOGOPTIONS=timestamp
  3. Check logs - timestamp should appear before log messages

REPOSITORY
  R168 Kleopatra

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D28495

AFFECTED FILES
  src/kleopatraapplication.cpp
  src/utils/log.cpp
  src/utils/log.h

To: andreylegayev
Cc: kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20200401/3197f5b0/attachment.html>


More information about the kde-pim mailing list