mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Ref T730, log category
This commit is contained in:
committed by
Mat Sutcliffe
parent
27fedad3fd
commit
226b601565
@@ -11,6 +11,7 @@
|
||||
#include "blackmisc/network/networkutils.h"
|
||||
#include "blackmisc/network/external/qjsonwebtoken.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/logcategory.h"
|
||||
|
||||
#include <QJsonObject>
|
||||
#include <QJsonArray>
|
||||
@@ -28,6 +29,12 @@ namespace BlackCore
|
||||
{
|
||||
namespace Connection
|
||||
{
|
||||
const CLogCategoryList &CApiServerConnection::getLogCategories()
|
||||
{
|
||||
static const CLogCategoryList cats { CLogCategory::audio(), CLogCategory::vatsimSpecific() };
|
||||
return cats;
|
||||
}
|
||||
|
||||
CApiServerConnection::CApiServerConnection(const QString &address, QObject *parent) :
|
||||
QObject(parent),
|
||||
m_address(address)
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#ifndef BLACKCORE_AFV_CONNECTION_APISERVERCONNECTION_H
|
||||
#define BLACKCORE_AFV_CONNECTION_APISERVERCONNECTION_H
|
||||
|
||||
#include "blackmisc/logcategorylist.h"
|
||||
#include "blackcore/afv/dto.h"
|
||||
#include "blackcore/application.h"
|
||||
|
||||
@@ -43,6 +44,9 @@ namespace BlackCore
|
||||
NoError
|
||||
};
|
||||
|
||||
//! Categories
|
||||
static const BlackMisc::CLogCategoryList &getLogCategories();
|
||||
|
||||
//! Constructor
|
||||
CApiServerConnection(const QString &address, QObject *parent = nullptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user