The most straightforward approach is to define `SPDLOG_ACTIVE_LEVEL` before including spdlog headers:
```c++
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE
#include <catch2/catch_all.hpp>
#include <spdlog/spdlog.h> int bar(int x)
{ SPDLOG_TRACE("{} x={} ", _PRETTY_FUNCTION_, x); return x + 1; }
TEST_CASE("Bar") { REQUIRE(bar(3) == 4);
} ```