28#pragma warning(push, 0)
29#include <spdlog/spdlog.h>
30#include <spdlog/fmt/ostr.h>
31#include <spdlog/fmt/fmt.h>
44 void Log(
const std::string& title,
const std::string& msg);
50 void LogWarning(
const std::string& title,
const std::string& msg);
56 void LogError(
const std::string& title,
const std::string& msg);
59#define FMT(...) fmt::format(__VA_ARGS__)
66 #define LOG(x, ...) Raito::Core::Debug::Log(x, FMT(__VA_ARGS__))
70 #define F_LOG(...) Raito::Core::Debug::Log(__FUNCTION__, FMT(__VA__ARGS__))
75 #define WARN(x, ...) Raito::Core::Debug::LogWarning(x, FMT(__VA_ARGS__))
79 #define F_WARN(...) Raito::Core::Debug::LogWarning(__FUNCTION__, FMT(__VA_ARGS__))
84 #define ERR(x, ...) Raito::Core::Debug::LogError(x, FMT(__VA_ARGS__))
88 #define F_ERR(...) Raito::Core::Debug::LogError(__FUNCTION__, FMT(__VA_ARGS__))
void LogError(const std::string &title, const std::string &msg)
Definition Log.cpp:63
bool Initialize(bool logDumps)
Definition Log.cpp:38
void LogWarning(const std::string &title, const std::string &msg)
Definition Log.cpp:59
void Log(const std::string &title, const std::string &msg)
Definition Log.cpp:55