// // Created by YuhangQ on 2021/10/22. // #ifndef INVODB_LOGGER_H #define INVODB_LOGGER_H #include #include class Logger { public: template static void info(const T& msg); template static void info(const T& first, const K& second); template static void warn(const T& msg); template static void warn(const T& first, const K& second); template static void error(const T& msg); template static void error(const T& first, const K& second); }; template void Logger::info(const T &msg) { std::cout << "[INFO] " << msg << std::endl; } template void Logger::info(const T &first, const K &second) { std::cout << "[INFO] " << first << second << std::endl; } template void Logger::warn(const T &msg) { std::cout << "[WARN] " << msg << std::endl; } template void Logger::warn(const T &first, const K &second) { std::cout << "[WARN] " << first << second << std::endl; } template void Logger::error(const T &msg) { std::cout << "[ERROR] " << msg << std::endl; } template void Logger::error(const T &first, const K &second) { std::cout << "[ERROR] " << first << second << std::endl; } #endif //INVODB_LOGGER_H