how to filter out debug messages like “XI2 mouse release … source MouseEventNotSynthesized”
Solved
General and Desktop
-
After enabling debug messages, my console is flooded with unwanted system messages like
XI2 mouse motion 331,150, time 188607671, source MouseEventNotSynthesized
How to get rid of them? I guess through
QLoggingCategory::setFilterRules("*.debug=true;foo.bar.debug=false");
How to find out what to put in place of
foo.bar
?Disclosure: a longer version of this question is pending at https://stackoverflow.com/questions/48486828
-
Answer at https://stackoverflow.com/a/48491350/1017348.
The documentation of QLoggingCategory has a wrong separator character (https://bugreports.qt.io/browse/QTBUG-66050) and is insufficient (https://bugreports.qt.io/browse/QTBUG-66051).