9 explicit Logger(std::string name);
11 template <
typename... Args>
12 constexpr auto trace(spdlog::format_string_t<Args...> fmt, Args &&...args) ->
void {
13 m_logger->trace(fmt, std::forward<Args>(args)...);
16 template <
typename... Args>
17 constexpr auto debug(spdlog::format_string_t<Args...> fmt, Args &&...args) ->
void {
18 m_logger->debug(fmt, std::forward<Args>(args)...);
21 template <
typename... Args>
22 constexpr auto info(spdlog::format_string_t<Args...> fmt, Args &&...args) ->
void {
23 m_logger->info(fmt, std::forward<Args>(args)...);
26 template <
typename... Args>
27 constexpr auto warn(spdlog::format_string_t<Args...> fmt, Args &&...args) ->
void {
28 m_logger->warn(fmt, std::forward<Args>(args)...);
31 template <
typename... Args>
32 constexpr auto error(spdlog::format_string_t<Args...> fmt, Args &&...args) ->
void {
33 m_logger->error(fmt, std::forward<Args>(args)...);
36 template <
typename... Args>
37 constexpr auto critical(spdlog::format_string_t<Args...> fmt, Args &&...args) ->
void {
38 m_logger->critical(fmt, std::forward<Args>(args)...);
39 m_logger->critical(
"Application exit due to critical error!");
43 [[nodiscard]]
auto getName()
const -> std::string {
48 std::shared_ptr<spdlog::logger> m_logger;