Make use of nymea logging categories and offer libnymea-zigbee ZigbeeNetwork logging category within nymea to enable

This commit is contained in:
Simon Stürz 2020-10-28 10:26:43 +01:00
parent 915cd25a7d
commit 6e72689c56
3 changed files with 7 additions and 4 deletions

View File

@ -37,6 +37,8 @@
#include <zigbeenetworkmanager.h>
NYMEA_LOGGING_CATEGORY(dcZigbeeResource, "ZigbeeResource")
namespace nymeaserver {
ZigbeeHardwareResourceImplementation::ZigbeeHardwareResourceImplementation(QObject *parent) :

View File

@ -32,7 +32,11 @@
#include "nymeasettings.h"
#include "loggingcategories.h"
#include <QSerialPortInfo>
NYMEA_LOGGING_CATEGORY(dcZigbee, "Zigbee")
// Register debug category from the libnymea-zigbee.
// Do not use this category within nymea!
NYMEA_LOGGING_CATEGORY(dcZigbeeNetwork, "ZigbeeNetwork")
namespace nymeaserver {

View File

@ -76,9 +76,6 @@ NYMEA_LOGGING_CATEGORY(dcBluetoothServerTraffic, "BluetoothServerTraffic")
NYMEA_LOGGING_CATEGORY(dcMqtt, "Mqtt")
NYMEA_LOGGING_CATEGORY(dcTranslations, "Translations")
NYMEA_LOGGING_CATEGORY(dcI2C, "I2C")
NYMEA_LOGGING_CATEGORY(dcZigbee, "Zigbee")
NYMEA_LOGGING_CATEGORY(dcZigbeeResource, "ZigbeeResource")
static QFile s_logFile;
static bool s_useColors;