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

qCDebug() and friends could pass the category as a tag in Android

    XMLWordPrintable

Details

    • Android
    • 87d8ee755bfdef8e72a122789c2e3ed382881a12 (qt/qtbase/dev) eb4b6e8f3574296e1f864fc7a5dfdef147bc5839 (qt/qtbase/6.2)

    Description

      Currently, macros like qCDebug(someCategory) prints the log into Android's logical in the form of:

      D [libName.so]: [someCategory]: [rest of the message]
      

      When providing a category it is more correct to use that category as the tag instead which would save users from having to call __android_log_print() manually to get the following outcome:

      D [someCategory]: [rest of the message]
      

       which would act the same way as calling this from Java:

      Log.d(TAG, message);
      

      Attachments

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

        Activity

          People

            assam Assam Boudjelthia
            assam Assam Boudjelthia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes