diff --git a/libnymea-core/hardware/zigbee/zigbeehardwareresourceimplementation.cpp b/libnymea-core/hardware/zigbee/zigbeehardwareresourceimplementation.cpp index a893897b..f459a4f2 100644 --- a/libnymea-core/hardware/zigbee/zigbeehardwareresourceimplementation.cpp +++ b/libnymea-core/hardware/zigbee/zigbeehardwareresourceimplementation.cpp @@ -37,6 +37,8 @@ #include +NYMEA_LOGGING_CATEGORY(dcZigbeeResource, "ZigbeeResource") + namespace nymeaserver { ZigbeeHardwareResourceImplementation::ZigbeeHardwareResourceImplementation(QObject *parent) : diff --git a/libnymea-core/zigbee/zigbeemanager.cpp b/libnymea-core/zigbee/zigbeemanager.cpp index ce5d98f5..af26f5ce 100644 --- a/libnymea-core/zigbee/zigbeemanager.cpp +++ b/libnymea-core/zigbee/zigbeemanager.cpp @@ -32,7 +32,11 @@ #include "nymeasettings.h" #include "loggingcategories.h" -#include +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 { diff --git a/libnymea/loggingcategories.cpp b/libnymea/loggingcategories.cpp index c40c2141..987b00e2 100644 --- a/libnymea/loggingcategories.cpp +++ b/libnymea/loggingcategories.cpp @@ -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;