79780520

Date: 2025-10-01 22:35:08
Score: 1.5
Natty:
Report link

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);

} ```

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sarvenaz Ranjbar