Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Call setEnabled on logging category
-
How to call setEnabled on logging category?
Q_DECLARE_LOGGING_CATEGORY(CAT) Q_LOGGING_CATEGORY(CAT, "cat") CAT.setEnabled(QtDebugMsg, false); // error: C2228: left of '.setEnabled' must have class/struct/union
-
Hi,
Why not use QLoggingCategorie::setFilterRules ?