17#include <spdlog/spdlog.h>
18#include <nlohmann/json.hpp>
52template <
typename... Args>
53auto Trace(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
55 spdlog::trace(message, std::forward<Args>(args)...);
61auto Trace(
const T& message) ->
void
63 spdlog::trace(message);
68template <
typename... Args>
69auto Debug(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
71 spdlog::debug(message, std::forward<Args>(args)...);
77auto Debug(
const T& message) ->
void
79 spdlog::debug(message);
84template <
typename... Args>
85auto Message(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
87 spdlog::info(message, std::forward<Args>(args)...);
95 spdlog::info(message);
100template <
typename... Args>
101auto Warning(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
103 spdlog::warn(message, std::forward<Args>(args)...);
111 spdlog::warn(message);
116template <
typename... Args>
117auto Error(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
119 spdlog::error(message, std::forward<Args>(args)...);
127 spdlog::error(message);
132template <
typename... Args>
133auto Critical(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
135 spdlog::critical(message, std::forward<Args>(args)...);
143 spdlog::critical(message);
152 template <
typename FormatContext>
153 auto format(
const nlohmann::json& j, FormatContext& ctx)
const
155 return formatter<std::string>::format(j.dump(), ctx);
nlohmann::json json
Definition Json.cpp:19
static auto bindLuaTypes(sol::state &lua) -> void
Definition Logging.cpp:99
int logNumber
Definition Logging.h:43
static auto testOutput() -> void
Definition Logging.cpp:89
static auto initializeLogging() -> void
Definition Logging.cpp:31
auto Message(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:85
auto Error(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:117
auto Debug(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:69
auto Critical(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:133
auto Warning(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:101
auto Trace(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:53
Definition GameObject.h:27