Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42333

Add a timestamp message pattern placeholder

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 5.4.0
    • None
    • Core: I/O
    • None

    Description

      http://qt-project.org/doc/qt-5/qtglobal.html#qSetMessagePattern shows that there are several placeholders, but one that would also be very useful is a %timestamp placeholder:

      2014-10-31T09:57:21.1234
      

      This would make basic profiling of code using existing qCDebug() calls very convenient. For short-lived programs or profiling, it might even make more sense to just provide a %time placeholder:

      09:57:21.1234
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes