linux: update logging tag (#194)

change linux logs name to librepods
This commit is contained in:
TCH
2025-08-25 14:20:29 +02:00
committed by GitHub
parent 46071f17d7
commit 598bd3d7d8
2 changed files with 7 additions and 7 deletions

View File

@@ -3,9 +3,9 @@
#include <QDebug> #include <QDebug>
#include <QLoggingCategory> #include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(airpodsApp) Q_DECLARE_LOGGING_CATEGORY(Librepods)
#define LOG_INFO(msg) qCInfo(airpodsApp) << "\033[32m" << msg << "\033[0m" #define LOG_INFO(msg) qCInfo(Librepods) << "\033[32m" << msg << "\033[0m"
#define LOG_WARN(msg) qCWarning(airpodsApp) << "\033[33m" << msg << "\033[0m" #define LOG_WARN(msg) qCWarning(Librepods) << "\033[33m" << msg << "\033[0m"
#define LOG_ERROR(msg) qCCritical(airpodsApp) << "\033[31m" << msg << "\033[0m" #define LOG_ERROR(msg) qCCritical(Librepods) << "\033[31m" << msg << "\033[0m"
#define LOG_DEBUG(msg) qCDebug(airpodsApp) << "\033[34m" << msg << "\033[0m" #define LOG_DEBUG(msg) qCDebug(Librepods) << "\033[34m" << msg << "\033[0m"

View File

@@ -28,7 +28,7 @@
using namespace AirpodsTrayApp::Enums; using namespace AirpodsTrayApp::Enums;
Q_LOGGING_CATEGORY(airpodsApp, "airpodsApp") Q_LOGGING_CATEGORY(Librepods, "Librepods")
class AirPodsTrayApp : public QObject { class AirPodsTrayApp : public QObject {
Q_OBJECT Q_OBJECT
@@ -48,7 +48,7 @@ public:
, m_deviceInfo(new DeviceInfo(this)), m_bleManager(new BleManager(this)) , m_deviceInfo(new DeviceInfo(this)), m_bleManager(new BleManager(this))
, m_systemSleepMonitor(new SystemSleepMonitor(this)) , m_systemSleepMonitor(new SystemSleepMonitor(this))
{ {
QLoggingCategory::setFilterRules(QString("airpodsApp.debug=%1").arg(debugMode ? "true" : "false")); QLoggingCategory::setFilterRules(QString("Librepods.debug=%1").arg(debugMode ? "true" : "false"));
LOG_INFO("Initializing AirPodsTrayApp"); LOG_INFO("Initializing AirPodsTrayApp");
// Initialize tray icon and connect signals // Initialize tray icon and connect signals