From 644aa4397b03dbef73f8bfedc13925b51cad836b Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 5 Jan 2024 20:55:15 +0800 Subject: feat: integrate logging api to core --- src/ui/GpgFrontendUI.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/ui/GpgFrontendUI.h') diff --git a/src/ui/GpgFrontendUI.h b/src/ui/GpgFrontendUI.h index f67da43e..b3115795 100644 --- a/src/ui/GpgFrontendUI.h +++ b/src/ui/GpgFrontendUI.h @@ -33,9 +33,16 @@ */ #include -/** - * Project internal dependencies - */ +// Core #include "GpgFrontend.h" #include "core/GpgFrontendCore.h" +#include "core/utils/LogUtils.h" + +// UI #include "ui/GpgFrontendUIExport.h" + +#define GF_UI_LOG_TRACE(...) GF_LOG_TRACE("ui", __VA_ARGS__) +#define GF_UI_LOG_DEBUG(...) GF_LOG_DEBUG("ui", __VA_ARGS__) +#define GF_UI_LOG_INFO(...) GF_LOG_INFO("ui", __VA_ARGS__) +#define GF_UI_LOG_WARN(...) GF_LOG_WARN("ui", __VA_ARGS__) +#define GF_UI_LOG_ERROR(...) GF_LOG_ERROR("ui", __VA_ARGS__) -- cgit v1.2.3