Default to disabled debug log on Q_LOGGING_CATEGORY calls

Authored by kossebau on Apr 30 2017, 12:49 PM.

Description

Default to disabled debug log on Q_LOGGING_CATEGORY calls

Summary:
This removes the need to call QLoggingCategory::setFilterRules()
in the program code to default to disabled debug type log
without any other settings.
The latter has disadvantages, as it shadows any settings done
in qtlogging.ini config files by the user
(e.g. via kdebugsettings), thus enabling runtime control only
via QT_LOGGING_CONF/QT_LOGGING_RULES, which is not that
comfortable with lots of categories.

Also use ECMQtDeclareLoggingCategory for less manual code

While there can be some inconsistency with the default disabled
log categories by ECMQtDeclareLoggingCategory, which
switched to QtInfoMsg for ECM 5.26 (when KF5 5.26 has Qt 5.5
as min dep, which is the Qt version QtInfoMsg was added),
current KDevPlatform code has Qt 5.4 as minimum version and
thus also does not use qCInfo, so KDevPlatform behaviour should
be the same across used Qt versions.

Reviewers: KDevelop, kfunk

Reviewed By: KDevelop, kfunk

Subscribers: apol, kdevelop-devel

Differential Revision: https://phabricator.kde.org/D5666

Details

Committed
kossebauMay 12 2017, 2:52 PM
Reviewer
KDevelop
Differential Revision
D5666: Default to disabled debug log on Q_LOGGING_CATEGORY calls
Parents
R32:ddc761c3e683: Merge branch '5.1'
Branches
Unknown
Tags
Unknown