#include <memory>
#include <exception>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/dist_sink.h>
#include <spdlog/sinks/ringbuffer_sink.h>
Go to the source code of this file.
◆ CHECK
Value: if(!(expr)) { \
LOG_RUNTIME(Core, err, "Check failed: {}", #expr); \
throw std::runtime_error( #expr ); \
}
◆ CHECK_MSG
| #define CHECK_MSG |
( |
|
expr, |
|
|
|
format_str, |
|
|
|
... |
|
) |
| |
Value: if(!(expr)) { \
std::string __message = fmt::format(format_str __VA_OPT__(,) __VA_ARGS__); \
LOG_RUNTIME(Core, err, __message); \
throw std::runtime_error(__message); \
}
◆ LOG_GET_GLOBAL_SINK
◆ LOG_GET_LOGGER
◆ LOG_RUNTIME
| #define LOG_RUNTIME |
( |
|
TAG, |
|
|
|
LEVEL, |
|
|
|
... |
|
) |
| SPDLOG_LOGGER_CALL(LOG_GET_LOGGER(TAG), spdlog::level::LEVEL __VA_OPT__(,) __VA_ARGS__) |