-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use logging categories throughout Quaternion
Closes #787.
- Loading branch information
1 parent
96debe0
commit 28eef67
Showing
19 changed files
with
180 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
// NB: Only include this file from .cpp | ||
|
||
#include <QtCore/QLoggingCategory> | ||
|
||
// Reusing the macro defined in Quotient - these must never cross ways | ||
#define QUO_LOGGING_CATEGORY(Name, Id) \ | ||
inline Q_LOGGING_CATEGORY((Name), (Id), QtInfoMsg) | ||
|
||
namespace { | ||
QUO_LOGGING_CATEGORY(MAIN, "quaternion.main") | ||
QUO_LOGGING_CATEGORY(ACCOUNTSELECTOR, "quaternion.accountselector") | ||
QUO_LOGGING_CATEGORY(MODELS, "quaternion.models") | ||
QUO_LOGGING_CATEGORY(EVENTMODEL, "quaternion.models.events") | ||
QUO_LOGGING_CATEGORY(TIMELINE, "quaternion.timeline") | ||
QUO_LOGGING_CATEGORY(HTMLFILTER, "quaternion.htmlfilter") | ||
QUO_LOGGING_CATEGORY(MSGINPUT, "quaternion.messageinput") | ||
QUO_LOGGING_CATEGORY(IMAGEPROVIDER, "quaternion.imageprovider") | ||
|
||
// Only to be used in QML; shows up here for documentation purpose only | ||
[[maybe_unused]] QUO_LOGGING_CATEGORY(TIMELINEQML, "quaternion.timeline.qml") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.