diff --git a/CMakeLists.txt b/CMakeLists.txt index d5eb9f1..a965526 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.25) # ---- Project ---- diff --git a/include/filestorm/utils/logger.h b/include/filestorm/utils/logger.h index e6c3d0b..e06c545 100644 --- a/include/filestorm/utils/logger.h +++ b/include/filestorm/utils/logger.h @@ -72,12 +72,12 @@ class FilestormLogger { public: std::shared_ptr get_logger() { return logger; } - template inline void trace(spdlog::format_string_t fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->trace(fmt, std::forward(args)...)); } - template inline void debug(spdlog::format_string_t fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->debug(fmt, std::forward(args)...)); } - template inline void info(spdlog::format_string_t fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->info(fmt, std::forward(args)...)); } - template inline void warn(spdlog::format_string_t fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->warn(fmt, std::forward(args)...)); } - template inline void error(spdlog::format_string_t fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->error(fmt, std::forward(args)...)); } - template inline void critical(spdlog::format_string_t fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->critical(fmt, std::forward(args)...)); } + template inline void trace(const std::string fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->trace(fmt, std::forward(args)...)); } + template inline void debug(const std::string fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->debug(fmt, std::forward(args)...)); } + template inline void info(const std::string fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->info(fmt, std::forward(args)...)); } + template inline void warn(const std::string fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->warn(fmt, std::forward(args)...)); } + template inline void error(const std::string fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->error(fmt, std::forward(args)...)); } + template inline void critical(const std::string fmt, Args &&...args) { PRINT_WITH_CLEAR(logger->critical(fmt, std::forward(args)...)); } template inline void trace(const T &msg) { PRINT_WITH_CLEAR(logger->trace(msg);) } template inline void debug(const T &msg) { PRINT_WITH_CLEAR(logger->debug(msg);) }