Logging with QLoggingCategory instead of QtGlobal functions (qDebug, qInfo, etc)
allow users to filter out unwanted messages with kdebugsettings and qtlogging.ini
Details
Details
- Reviewers
mlaurent - Commits
- R180:c255a9adba44: use QLoggingCategory for logging
Diff Detail
Diff Detail
- Repository
- R180 PIM: KMime
- Lint
Lint Skipped - Unit
Unit Tests Skipped
src/CMakeLists.txt | ||
---|---|---|
31 | Why warning by default ? if you add it you need to adapt kmime.categories for defining it (DEFAULT_SEVERITY [WARNING]) |
src/kmime_mdn.cpp | ||
---|---|---|
41 ↗ | (On Diff #72284) | Please remove QDebug as it's already define in kmime_debug.h same for others files. Thanks |
Comment Actions
I've removed unused QDebug except one in kmime_codecs.cpp. I don't have enough knowledge for it. When I'm trying to use KMIME_LOG in kmime_codecs.cpp, I get compile error in autotests.
Comment Actions
"I've removed unused QDebug except one in kmime_codecs.cpp. I don't have enough knowledge for it. When I'm trying to use KMIME_LOG in kmime_codecs.cpp, I get compile error in autotests." I will look at it after your commit.+
Thanks for doing it.
Do you have a commit access or you want that we commit for you ?