diff --git a/src/blackmisc/logcategory.h b/src/blackmisc/logcategory.h index c6e5c520d..6bf06b1ea 100644 --- a/src/blackmisc/logcategory.h +++ b/src/blackmisc/logcategory.h @@ -113,6 +113,13 @@ namespace BlackMisc return cat; } + //! VATSIM specific + static const CLogCategory &vatsimSpecific() + { + static const CLogCategory cat { "swift.vatsim" }; + return cat; + } + //! All predefined special categories //! \note Human readable patterns are defined in CLogPattern::allHumanReadablePatterns static const QList &allSpecialCategories() @@ -129,6 +136,7 @@ namespace BlackMisc swiftDbWebservice(), services(), validation(), + vatsimSpecific(), verification(), webservice() }; diff --git a/src/blackmisc/logpattern.cpp b/src/blackmisc/logpattern.cpp index 150a8b1c5..8d2ef019b 100644 --- a/src/blackmisc/logpattern.cpp +++ b/src/blackmisc/logpattern.cpp @@ -16,19 +16,21 @@ namespace BlackMisc { static const QHash patterns { - { "uncategorized (swift)", exactMatch(CLogCategory::uncategorized()) }, - { "validation", exactMatch(CLogCategory::validation()) }, - { "verification", exactMatch(CLogCategory::verification()) }, - { "services", exactMatch(CLogCategory::services()) }, - { "model mapping", exactMatch(CLogCategory::mapping()) }, - { "swift contexts", exactMatch(CLogCategory::context()) }, - { "swift context slots", exactMatch(CLogCategory::contextSlot()) }, - { "swift GUI", exactMatch(CLogCategory::guiComponent()) }, - { "downloading data", exactMatch(CLogCategory::download()) }, - { "webservice related", exactMatch(CLogCategory::webservice()) }, + { "uncategorized (swift)", exactMatch(CLogCategory::uncategorized()) }, + { "validation", exactMatch(CLogCategory::validation()) }, + { "verification", exactMatch(CLogCategory::verification()) }, + { "services", exactMatch(CLogCategory::services()) }, + { "model mapping", exactMatch(CLogCategory::mapping()) }, + { "model matching", exactMatch(CLogCategory::matching()) }, + { "swift contexts", exactMatch(CLogCategory::context()) }, + { "swift context slots", exactMatch(CLogCategory::contextSlot()) }, + { "swift GUI", exactMatch(CLogCategory::guiComponent()) }, + { "downloading data", exactMatch(CLogCategory::download()) }, + { "VASTIM specific", exactMatch(CLogCategory::vatsimSpecific()) }, + { "webservice related", exactMatch(CLogCategory::webservice()) }, { "swift DB webservice related", exactMatch(CLogCategory::swiftDbWebservice()) }, - { "Qt library", startsWith("qt.") }, - { "uncategorized (other)", empty() } + { "Qt library", startsWith("qt.") }, + { "uncategorized (other)", empty() } }; return patterns; }