aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-05-01 01:54:53 +0900
committerGitHub <noreply@github.com>2017-05-01 01:54:53 +0900
commit096a05d59654244f7c928dc5f2537a760070a577 (patch)
tree1ee17f9016b0f333c08cf5d0eb0c8a8ab86a8573 /util.h
parent9a13bbfd8a800712d0a2fcc4887c8d4115d06d4e (diff)
parent3fa1ee3c6b04d0793ccca3f903797625f7a08d03 (diff)
downloadlibquotient-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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/util.h b/util.h
index e9f1c231..29e623c9 100644
--- a/util.h
+++ b/util.h
@@ -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)
{