17#include <spdlog/spdlog.h>
18#include <nlohmann/json.hpp>
45template <
typename... Args>
46auto Trace(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
48 spdlog::trace(message, std::forward<Args>(args)...);
54auto Trace(
const T& message) ->
void
56 spdlog::trace(message);
61template <
typename... Args>
62auto Debug(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
64 spdlog::debug(message, std::forward<Args>(args)...);
70auto Debug(
const T& message) ->
void
72 spdlog::debug(message);
77template <
typename... Args>
78auto Message(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
80 spdlog::info(message, std::forward<Args>(args)...);
88 spdlog::info(message);
93template <
typename... Args>
94auto Warning(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
96 spdlog::warn(message, std::forward<Args>(args)...);
104 spdlog::warn(message);
109template <
typename... Args>
110auto Error(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
112 spdlog::error(message, std::forward<Args>(args)...);
120 spdlog::error(message);
125template <
typename... Args>
126auto Critical(spdlog::format_string_t<Args...> message, Args&&... args) ->
void
128 spdlog::critical(message, std::forward<Args>(args)...);
136 spdlog::critical(message);
143struct fmt::formatter<nlohmann::
json> : formatter<std::string>
145 template <
typename FormatContext>
146 auto format(
const nlohmann::json& j, FormatContext& ctx)
const
148 return formatter<std::string>::format(j.dump(), ctx);
nlohmann::json json
Definition Json.cpp:19
int logNumber
Definition Logging.h:36
static auto testOutput() -> void
Definition Logging.cpp:84
static auto initializeLogging() -> void
Definition Logging.cpp:30
auto Message(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:78
auto Error(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:110
auto Debug(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:62
auto Critical(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:126
auto Warning(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:94
auto Trace(spdlog::format_string_t< Args... > message, Args &&... args) -> void
Definition Logging.h:46