Use KF-standardized Qt logging categories

See https://community.kde.org/Frameworks/Frameworks_Logging_Policy
parent 29d10453
......@@ -8,11 +8,20 @@ set(kglobalaccel_SRCS
ecm_qt_declare_logging_category(kglobalaccel_SRCS
HEADER kglobalaccel_debug.h
IDENTIFIER KGLOBALACCEL_LOG
CATEGORY_NAME kf5.kglobalaccel
CATEGORY_NAME kf.globalaccel
OLD_CATEGORY_NAMES kf5.kglobalaccel
DESCRIPTION "KGlobalAccel"
EXPORT KGLOBALACCEL
)
ecm_qt_export_logging_category(
IDENTIFIER KGLOBALACCELD
CATEGORY_NAME kf.globalaccel.kglobalacceld
OLD_CATEGORY_NAMES kglobalaccel-runtime
DESCRIPTION "KGlobalAccel demon"
EXPORT KGLOBALACCEL
)
ecm_create_qm_loader(kglobalaccel_SRCS kglobalaccel5_qt)
set(kglobalaccel_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.KGlobalAccel.xml)
......
......@@ -20,4 +20,4 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
#include "logging_p.h"
// logging category for this framework, default: log stuff >= warning
Q_LOGGING_CATEGORY(KGLOBALACCELD, "kglobalaccel-runtime", QtWarningMsg)
Q_LOGGING_CATEGORY(KGLOBALACCELD, "kf.globalaccel.kglobalacceld", QtWarningMsg)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment