diff options
author | saturneric <[email protected]> | 2024-07-29 19:29:56 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-07-29 19:29:56 +0000 |
commit | fa90ec4b5315b9e70a44a9625c143ce253f0e885 (patch) | |
tree | 8ffa82e33522de03974d6d0289aa831b4fd6ebdf /src/sdk/GFSDKLog.cpp | |
parent | fix: correct urls at appdata.xml (diff) | |
parent | Merge branch 'develop' of github.com:saturneric/GpgFrontend into develop (diff) | |
download | GpgFrontend-fa90ec4b5315b9e70a44a9625c143ce253f0e885.tar.gz GpgFrontend-fa90ec4b5315b9e70a44a9625c143ce253f0e885.zip |
Merge branch 'develop'
Diffstat (limited to '')
-rw-r--r-- | src/sdk/GFSDKLog.cpp (renamed from src/main.h) | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/main.h b/src/sdk/GFSDKLog.cpp index a394e676..bc1ce7b8 100644 --- a/src/main.h +++ b/src/sdk/GFSDKLog.cpp @@ -26,13 +26,18 @@ * */ -#pragma once +#include "GFSDKLog.h" -#include "core/utils/LogUtils.h" -#include "core/utils/MemoryUtils.h" +#include <qglobal.h> -#define GF_MAIN_LOG_TRACE(...) GF_LOG_TRACE("main", __VA_ARGS__) -#define GF_MAIN_LOG_DEBUG(...) GF_LOG_DEBUG("main", __VA_ARGS__) -#define GF_MAIN_LOG_INFO(...) GF_LOG_INFO("main", __VA_ARGS__) -#define GF_MAIN_LOG_WARN(...) GF_LOG_WARN("main", __VA_ARGS__) -#define GF_MAIN_LOG_ERROR(...) GF_LOG_ERROR("main", __VA_ARGS__)
\ No newline at end of file +Q_LOGGING_CATEGORY(module, "module") + +void GFModuleLogTrace(const char* l) { qCDebug(module) << QString(l); } + +void GFModuleLogDebug(const char* l) { qCDebug(module) << QString(l); } + +void GFModuleLogInfo(const char* l) { qCInfo(module) << QString(l); } + +void GFModuleLogWarn(const char* l) { qCWarning(module) << QString(l); } + +void GFModuleLogError(const char* l) { qCCritical(module) << QString(l); } |