diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-05-01 01:54:53 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-01 01:54:53 +0900 |
commit | 096a05d59654244f7c928dc5f2537a760070a577 (patch) | |
tree | 1ee17f9016b0f333c08cf5d0eb0c8a8ab86a8573 /util.h | |
parent | 9a13bbfd8a800712d0a2fcc4887c8d4115d06d4e (diff) | |
parent | 3fa1ee3c6b04d0793ccca3f903797625f7a08d03 (diff) | |
download | libquotient-096a05d59654244f7c928dc5f2537a760070a577.tar.gz libquotient-096a05d59654244f7c928dc5f2537a760070a577.zip |
Merge pull request #61 from elvisangelaccio/qloggingcategory
Port to categorized logging
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -18,7 +18,11 @@ #pragma once -#include <QtCore/QDebug> +#include <QtCore/QLoggingCategory> + +Q_DECLARE_LOGGING_CATEGORY(EVENTS) +Q_DECLARE_LOGGING_CATEGORY(JOBS) +Q_DECLARE_LOGGING_CATEGORY(MAIN) namespace QMatrixClient { @@ -35,7 +39,7 @@ namespace QMatrixClient * Together with the operator<<() helper, the proposed usage is * (similar to std:: I/O manipulators): * - * @example qDebug() << formatJson << json_object; // (QJsonObject, etc.) + * @example qCDebug() << formatJson << json_object; // (QJsonObject, etc.) */ inline QDebug formatJson(QDebug debug_object) { |