Skip to content

Commit

Permalink
Use KF-standardized Qt logging categories
Browse files Browse the repository at this point in the history
  • Loading branch information
kossebau committed Jul 13, 2020
1 parent 0c4a44e commit a0b5367
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ ecm_qt_declare_logging_category(
HEADER "enginedebug.h"
IDENTIFIER "Baloo::ENGINE"
DEFAULT_SEVERITY Warning
CATEGORY_NAME "org.kde.baloo.engine"
CATEGORY_NAME kf.baloo.engine
OLD_CATEGORY_NAMES org.kde.baloo.engine
DESCRIPTION "Baloo Engine"
EXPORT BALOO
)
Expand Down
6 changes: 5 additions & 1 deletion src/file/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ set(file_static_lib_SRCS
propertydata.cpp
)

ecm_qt_declare_logging_category(file_static_lib_SRCS HEADER baloodebug.h IDENTIFIER BALOO CATEGORY_NAME org.kde.baloo)
ecm_qt_declare_logging_category(file_static_lib_SRCS
HEADER baloodebug.h
IDENTIFIER BALOO
CATEGORY_NAME kf.baloo
)

# KF6 TODO - remove BalooWatcherApplication
qt5_add_dbus_interface(file_static_lib_SRCS org.kde.BalooWatcherApplication.xml baloowatcherapplication_interface)
Expand Down
6 changes: 5 additions & 1 deletion src/file/extractor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ set(EXTRACTOR_SRCS
../propertydata.cpp
)

ecm_qt_declare_logging_category(EXTRACTOR_SRCS HEADER baloodebug.h IDENTIFIER BALOO CATEGORY_NAME org.kde.baloo)
ecm_qt_declare_logging_category(EXTRACTOR_SRCS
HEADER baloodebug.h
IDENTIFIER BALOO
CATEGORY_NAME kf.baloo
)
kconfig_add_kcfg_files(EXTRACTOR_SRCS ../baloosettings.kcfgc GENERATE_MOC)

add_executable(baloo_file_extractor ${EXTRACTOR_SRCS})
Expand Down
3 changes: 2 additions & 1 deletion src/kioslaves/tags/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ ecm_qt_declare_logging_category(tags_LIB_SRCS
HEADER kio_tags_debug.h
IDENTIFIER Baloo::KIO_TAGS
DEFAULT_SEVERITY Warning
CATEGORY_NAME kf5.kio.kio_tags
CATEGORY_NAME kf.kio.slaves.tags
OLD_CATEGORY_NAMES kf5.kio.kio_tags
DESCRIPTION "Baloo Tags (KIO)"
EXPORT BALOO
)
Expand Down
3 changes: 2 additions & 1 deletion src/kioslaves/timeline/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ecm_qt_declare_logging_category(kio_timeline_SRCS
HEADER kio_timeline_debug.h
IDENTIFIER Baloo::KIO_TIMELINE
DEFAULT_SEVERITY Warning
CATEGORY_NAME kf5.kio.kio_timeline
CATEGORY_NAME kf.kio.slaves.timeline
OLD_CATEGORY_NAMES kf5.kio.kio_timeline
DESCRIPTION "Baloo Timeline (KIO)"
EXPORT BALOO
)
Expand Down
3 changes: 2 additions & 1 deletion src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ set(BALOO_LIB_SRCS
ecm_qt_declare_logging_category(BALOO_LIB_SRCS
HEADER baloodebug.h
IDENTIFIER BALOO
CATEGORY_NAME org.kde.baloo
CATEGORY_NAME kf.baloo
OLD_CATEGORY_NAMES org.kde.baloo
DESCRIPTION "Baloo File debug"
EXPORT BALOO
)
Expand Down

0 comments on commit a0b5367

Please sign in to comment.