Replace qDebug et al. to use QLoggingCategory
Open, LowPublic

Description

Use QLoggingCategory with qCDebug et al. to make it possible to properly filter all the stuff logged by Krita.

See libs/global/kis_debug.cpp and libs/global/kis_debug.h

Related Objects

Small note: uou can use the script kf5/convert-qkdebug-to-qcdebug.sh from kde-dev-scripts.git to automate the conversion.

Limitation: it defines only one category, but if you need multiple categories in different files, you can pass to the script only the files that needs to be covered by that specific category.

rempt added a subscriber: rempt.Oct 9 2017, 8:34 AM

Um... We already use qCDebug -- see libs/global/kis_debug.h