Option to disable logging completely.

Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
This commit is contained in:
Fabian Sauter 2022-07-12 10:32:11 +02:00
parent 7bdde2e6f1
commit cf721cc21a
20 changed files with 86 additions and 57 deletions

View file

@ -3,6 +3,7 @@
#include "gtest/gtest.h"
#include "kompute/Kompute.hpp"
#include "kompute/logger/Logger.hpp"
#include "shaders/Utils.hpp"
#include "test_op_custom_shader.hpp"
@ -113,9 +114,8 @@ main(int argc, char* argv[])
{
testing::InitGoogleTest(&argc, argv);
#if KOMPUTE_ENABLE_SPDLOG
spdlog::set_level(
static_cast<spdlog::level::level_enum>(KOMPUTE_LOG_LEVEL));
#if !KOMPUTE_OPT_LOG_LEVEL_DISABLED
logger::setupLogger();
#endif
return RUN_ALL_TESTS();