11#include <../../3rdParty/json/single_include/nlohmann/json.hpp>
12#include <../../3rdParty/spdlog/include/spdlog/spdlog.h>
13#include <../../3rdParty/spdlog/include/spdlog/sinks/basic_file_sink.h>
17 using json = nlohmann::json;
46 template <
typename... Args>
47 static void trace(fmt::format_string<Args...> msg, Args&&... args)
49 spdlog::trace(msg, std::forward<Args>(args)...);
52 template <
typename... Args>
53 static void info(fmt::format_string<Args...> msg, Args&&... args)
55 spdlog::info(msg, std::forward<Args>(args)...);
58 template <
typename... Args>
59 static void debug(fmt::format_string<Args...> msg, Args&&... args)
61 spdlog::debug(msg, std::forward<Args>(args)...);
64 template <
typename... Args>
65 static void warn(fmt::format_string<Args...> msg, Args&&... args)
67 spdlog::warn(msg, std::forward<Args>(args)...);
70 template <
typename... Args>
71 static void critical(fmt::format_string<Args...> msg, Args&&... args)
73 spdlog::critical(msg, std::forward<Args>(args)...);
80#define TRACE_CLASS_METHOD() Log::trace("Enter > {} {}::{}()", __file__, __class_name__, __func__);
81#define TRACE_METHOD Log::trace("Enter > {} {}()", __file__, __func__);
static void warn(fmt::format_string< Args... > msg, Args &&... args)
Definition logging.h:65
static void trace(fmt::format_string< Args... > msg, Args &&... args)
Definition logging.h:47
static void setLogLevel(const LogLevel &level=LogLevel::INFO)
Definition logging.cpp:15
static void critical(fmt::format_string< Args... > msg, Args &&... args)
Definition logging.h:71
static void init()
Definition logging.cpp:27
static void info(fmt::format_string< Args... > msg, Args &&... args)
Definition logging.h:53
static void close()
Definition logging.cpp:10
static void debug(fmt::format_string< Args... > msg, Args &&... args)
Definition logging.h:59
nlohmann::json json
Definition mantis.h:35
router.h
Definition app.h:30
LogLevel
Definition logging.h:23
@ WARN
Info Logging Level
@ INFO
Debug Logging Level
@ CRITICAL
Warning Logging Level
@ DEBUG
Trace logging level