2#include <spdlog/spdlog.h>
24 static void init(
const std::string &name =
"Calamity");
27 template <
typename... Args>
28 static void info(fmt::format_string<Args...> fmt, Args &&...args)
30 s_Logger->info(fmt, std::forward<Args>(args)...);
32 template <
typename... Args>
33 static void warn(fmt::format_string<Args...> fmt, Args &&...args)
35 s_Logger->warn(fmt, std::forward<Args>(args)...);
37 template <
typename... Args>
38 static void error(fmt::format_string<Args...> fmt, Args &&...args)
40 s_Logger->error(fmt, std::forward<Args>(args)...);
42 template <
typename... Args>
43 static void debug(fmt::format_string<Args...> fmt, Args &&...args)
45 s_Logger->debug(fmt, std::forward<Args>(args)...);
49 static std::shared_ptr<spdlog::logger> s_Logger;
static void exit()
Definition logger.cpp:13
static void debug(fmt::format_string< Args... > fmt, Args &&...args)
Definition logger.hpp:43
static void warn(fmt::format_string< Args... > fmt, Args &&...args)
Definition logger.hpp:33
static void init(const std::string &name="Calamity")
Definition logger.cpp:6
static void info(fmt::format_string< Args... > fmt, Args &&...args)
Definition logger.hpp:28
static void error(fmt::format_string< Args... > fmt, Args &&...args)
Definition logger.hpp:38