7#if SPDLOG_ACTIVE_LEVEL != SPDLOG_LEVEL_DEBUG
8# error "Invalid SPDLOG_ACTIVE_LEVEL in test. Should be SPDLOG_LEVEL_DEBUG"
11#define TEST_FILENAME "test_logs/simple_log"
13TEST_CASE(
"debug and trace w/o format string",
"[macros]]")
19 auto logger = spdlog::create<spdlog::sinks::basic_file_sink_mt>(
"logger", filename);
20 logger->set_pattern(
"%v");
48 auto logger = spdlog::create<spdlog::sinks::null_sink_mt>(
"refmacro");
int count_lines(const char *filename)
#define SPDLOG_FILENAME_T(s)
static SPDLOG_CONSTEXPR const char * default_eol
SPDLOG_INLINE void set_default_logger(std::shared_ptr< spdlog::logger > default_logger)
#define SPDLOG_DEBUG(...)
#define SPDLOG_TRACE(...)
#define SPDLOG_LOGGER_TRACE(logger,...)
#define SPDLOG_LOGGER_DEBUG(logger,...)
std::string file_contents(const std::string &filename)
void require_message_count(const std::string &filename, const std::size_t messages)
bool ends_with(std::string const &value, std::string const &ending)