engine/include/log.hpp
2022-09-02 12:06:59 +01:00

16 lines
310 B
C++

#pragma once
#ifdef NDEBUG
#define SPDLOG_ACTIVE_LEVEL 2 // info
#else
#define SPDLOG_ACTIVE_LEVEL 0 // trace
#endif
#include <spdlog/spdlog.h>
#define TRACE SPDLOG_TRACE
#define DEBUG SPDLOG_DEBUG
#define INFO SPDLOG_INFO
#define WARN SPDLOG_WARN
#define ERROR SPDLOG_ERROR
#define CRITICAL SPDLOG_CRITICAL