Unsolved 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! -
@Diracsbracket I have the same problem did you solve it? I want to stop Application Output I want to log only in files.
-
@Claoo Hi and welcome to devnet,
Since you want to put the output in a file, install a custom message handler and do that in there.
-
@SGaist Hi I did that and works great, but I don't know how to disable the logging from Application Output. I want the output to be only in the files I want and not in Application Output, at this moment my app is logging in files and in Application Output. Thx!
-
Not knowing what you implemented I can't answer to that issue.