mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
Ref T704, split matching utils for logging in aviation context
This commit is contained in:
committed by
Mat Sutcliffe
parent
07712c27e8
commit
4237839bbd
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user