From 4ef64e4e22f258d9459a93ab203e089d55e83df5 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sun, 19 Feb 2017 02:35:54 +0100 Subject: [PATCH] refs #883, new log categories --- src/blackmisc/logcategory.h | 24 ++++++++++++++++++++++++ src/blackmisc/logpattern.cpp | 4 ++++ 2 files changed, 28 insertions(+) diff --git a/src/blackmisc/logcategory.h b/src/blackmisc/logcategory.h index fb26f2fad..1518cb966 100644 --- a/src/blackmisc/logcategory.h +++ b/src/blackmisc/logcategory.h @@ -159,6 +159,27 @@ namespace BlackMisc return cat; } + //! swift GUI + static const CLogCategory &swiftPilotClient() + { + static const CLogCategory cat { "SwiftGuiStd" }; + return cat; + } + + //! swift data tool (aka mapping tool) + static const CLogCategory &swiftDataTool() + { + static const CLogCategory cat { "CSwiftData" }; + return cat; + } + + //! swift core + static const CLogCategory &swiftCore() + { + static const CLogCategory cat { "CSwiftCore" }; + return cat; + } + //! VATSIM specific static const CLogCategory &vatsimSpecific() { @@ -191,6 +212,9 @@ namespace BlackMisc network(), plugin(), swiftDbWebservice(), + swiftCore(), + swiftDataTool(), + swiftPilotClient(), services(), settings(), startup(), diff --git a/src/blackmisc/logpattern.cpp b/src/blackmisc/logpattern.cpp index 2845a152b..649a0721e 100644 --- a/src/blackmisc/logpattern.cpp +++ b/src/blackmisc/logpattern.cpp @@ -44,6 +44,10 @@ namespace BlackMisc { "webservice related", exactMatch(CLogCategory::webservice()) }, { "startup phase", exactMatch(CLogCategory::startup()) }, { "swift DB webservice related", exactMatch(CLogCategory::swiftDbWebservice()) }, + { "swift core", exactMatch(CLogCategory::swiftCore()) }, + { "swift data tool", exactMatch(CLogCategory::swiftDataTool()) }, + { "swift pilot client", exactMatch(CLogCategory::swiftPilotClient()) }, + { "Qt library", startsWith("qt.") }, { "uncategorized (default)", exactMatch("default") }, { "uncategorized (none)", empty() }