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/test/GpgFrontendTest.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/test/GpgFrontendTest.h') diff --git a/src/test/GpgFrontendTest.h b/src/test/GpgFrontendTest.h index 897a8a05..405eee90 100644 --- a/src/test/GpgFrontendTest.h +++ b/src/test/GpgFrontendTest.h @@ -28,23 +28,24 @@ #pragma once -#include - #include "GpgFrontendTestExport.h" +// Core +#include "core/utils/LogUtils.h" + namespace GpgFrontend::Test { struct GpgFrontendContext { int argc; char **argv; - spdlog::level::level_enum log_level; }; -void GPGFRONTEND_TEST_EXPORT -InitTestLoggingSystem(spdlog::level::level_enum level); - -void GPGFRONTEND_TEST_EXPORT ShutdownTestLoggingSystem(); - auto GPGFRONTEND_TEST_EXPORT ExecuteAllTestCase(GpgFrontendContext args) -> int; +#define GF_TEST_LOG_TRACE(...) GF_LOG_TRACE("test", __VA_ARGS__) +#define GF_TEST_LOG_DEBUG(...) GF_LOG_DEBUG("test", __VA_ARGS__) +#define GF_TEST_LOG_INFO(...) GF_LOG_INFO("test", __VA_ARGS__) +#define GF_TEST_LOG_WARN(...) GF_LOG_WARN("test", __VA_ARGS__) +#define GF_TEST_LOG_ERROR(...) GF_LOG_ERROR("test", __VA_ARGS__) + } // namespace GpgFrontend::Test -- cgit v1.2.3