#include #include #include #include class PreconfigureEnvironment : public ::testing::Environment { public: void SetUp() override { spdlog::set_level(spdlog::level::trace); std::println("\nPreconfigureEnvironment setup:\n\tCompiled max availabel log level: {}\n\tCurrently set log level: {}", SPDLOG_ACTIVE_LEVEL, std::to_underlying(spdlog::get_level())); } }; auto main(int argc, char** argv) -> int { ::testing::InitGoogleTest(&argc, argv); ::testing::AddGlobalTestEnvironment(new PreconfigureEnvironment); // NOLINT GTest takes ownership return RUN_ALL_TESTS(); }