refs #702, new log category

This commit is contained in:
Klaus Basan
2016-07-06 00:42:35 +02:00
parent 05fdf06660
commit fbf1756092
2 changed files with 9 additions and 0 deletions

View File

@@ -152,6 +152,13 @@ namespace BlackMisc
return cat;
}
//! Network specific, but not necessarily one specific flight network
static const CLogCategory &network()
{
static const CLogCategory cat { "swift.network" };
return cat;
}
//! All predefined special categories
//! \note Human readable patterns are defined in CLogPattern::allHumanReadablePatterns
static const QList<CLogCategory> &allSpecialCategories()
@@ -166,6 +173,7 @@ namespace BlackMisc
guiComponent(),
mapping(),
matching(),
network(),
swiftDbWebservice(),
services(),
settings(),

View File

@@ -33,6 +33,7 @@ namespace BlackMisc
{ "background task", exactMatch(CLogCategory::worker()) },
{ "model mapping", exactMatch(CLogCategory::mapping()) },
{ "model matching", exactMatch(CLogCategory::matching()) },
{ "network (flight)", exactMatch(CLogCategory::network()) },
{ "swift contexts", exactMatch(CLogCategory::context()) },
{ "swift context slots", exactMatch(CLogCategory::contextSlot()) },
{ "swift GUI", exactMatch(CLogCategory::guiComponent()) },