Ref T704, split matching utils for logging in aviation context

This commit is contained in:
Klaus Basan
2019-07-16 00:57:41 +02:00
committed by Mat Sutcliffe
parent 07712c27e8
commit 4237839bbd
16 changed files with 366 additions and 270 deletions

View File

@@ -11,9 +11,9 @@
#ifndef BLACKMISC_LOGCATEGORY_H
#define BLACKMISC_LOGCATEGORY_H
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/metaclass.h"
#include "blackmisc/valueobject.h"
#include "blackmisc/blackmiscexport.h"
#include <QList>
#include <QMetaType>
@@ -263,6 +263,13 @@ namespace BlackMisc
return cat;
}
//! Aviation specific
static const CLogCategory &aviation()
{
static const CLogCategory cat { "swift.aviation" };
return cat;
}
//! All predefined special categories
//! \note Human readable patterns are defined in CLogPattern::allHumanReadablePatterns
static const QList<CLogCategory> &allSpecialCategories()
@@ -270,6 +277,7 @@ namespace BlackMisc
static const QList<CLogCategory> cats
{
uncategorized(),
aviation(),
cache(),
cmdLine(),
context(),