diff options
author | saturneric <[email protected]> | 2024-01-05 12:55:15 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-05 12:55:15 +0000 |
commit | 644aa4397b03dbef73f8bfedc13925b51cad836b (patch) | |
tree | 7788d1cd2f0687dd8e576b111d9990c580092e7a /src/test/GpgFrontendTest.h | |
parent | fix: slove some known issues (diff) | |
download | GpgFrontend-644aa4397b03dbef73f8bfedc13925b51cad836b.tar.gz GpgFrontend-644aa4397b03dbef73f8bfedc13925b51cad836b.zip |
feat: integrate logging api to core
Diffstat (limited to '')
-rw-r--r-- | src/test/GpgFrontendTest.h | 17 |
1 files changed, 9 insertions, 8 deletions
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 <spdlog/spdlog.h> - #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 |