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

As developer I would like to have access to filterRules

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Qt Application Manager
    • None
    • Linux/X11

    Description

      In order to improve the developer experience during testing and debugging I would like to set my custom filter rules and change them on fly.

      Use-case:

      by default in am-config.yaml file developers set the following rules:

      ### LOGGING
      logging:
        rules:
          # These rules have been carefully selected by core team
          # ----------------------------------------------------------------------
          - "*=false"
          - "*.info=true"
      

      during the debugging I found that I need to see debug traces as well

      currently, I need to stop my application and go to am-config.yaml file and modify it

      time-consuming and not always possible on the target

      Proposal:

      In order to improve this experience I  would like to implement a debugging screen where will be present current set of rules in TextField and button "Update". TextField will be initially filled up by appmanager property "filterRules" or something

      then a developer can adjust rules and press the "update" button and apply new rules immediately
      an API https://doc.qt.io/qt-6/qloggingcategory.html#setFilterRules can be used for updating, but also would be nice to have on appman side to keep api clear and consistent

      The alternative solution might be to provide QLoggingCategory::getFilterRules() from QtCore module

      Attachments

        Issue Links

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

          Activity

            People

              rgriebl Robert Griebl
              kmitrakhovich_luxoft Kirill Mitrakhovich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes