Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to disable log messages in Application Output of Qt Creator?



  • Hi
    I would like to disable all the system logging messages (the W, D, E, I, V lines ) in the Application Output window of Qt Creator when uploading/running my Android application via Qt Creator.

    For example, every time I touch the screen I get output such as the following:

    D ViewRootImpl@2c0ffcc[QtActivity]: ViewPostImeInputStage processPointer 1
    D ViewRootImpl@2c0ffcc[QtActivity]: ViewPostImeInputStage processPointer 0
    

    and I would like get rid of these and the many other messages.

    As per http://doc.qt.io/qt-5/qloggingcategory.html, I tried adding at the top my of main() entry point:

    QLoggingCategory::setFilterRules("*.debug=false\n"
                                         "*.warning=false\n"
                                         "*.info=false");
    

    However, this does not have the effect desired, and I still see all the W, D, E, I, V log messages. I suppose the above rules are for logging to file rather than to the terminal.

    How can I disable those terminal logging messages then?
    Thanks!


Log in to reply