20#ifdef NNL_ENABLE_LOGGING
21#include "NNL/common/src_info.hpp"
22#define NNL_LOG_WARN(msg) \
24 nnl::Log(NNL_SRCTAG(msg), nnl::LogLevel::kWarn); \
26#define NNL_LOG_ERROR(msg) \
28 nnl::Log(NNL_SRCTAG(msg), nnl::LogLevel::kError); \
31#define NNL_LOG_WARN(msg) \
34#define NNL_LOG_ERROR(msg) \
90void Log(std::string_view msg,
LogLevel log_lvl);
void(*)(std::string_view msg, LogLevel log_level) LogFun
Type definition for a logging function.
Definition logger.hpp:74
void SetGlobalLogCB(LogFun callback) noexcept
Sets the logging callback function.
LogLevel
Enum class representing log levels.
Definition logger.hpp:50
@ kWarn
Indicates warning conditions.
Definition logger.hpp:64
@ kError
Indicates error conditions.
Definition logger.hpp:57
Definition exception.hpp:56