#ifndef LOG_HPP #define LOG_HPP #include #include namespace Log { const std::string_view WHITE = "\033[1;37m"; const std::string_view YELLOW = "\033[1;33m"; const std::string_view RED = "\033[1;31m"; const std::string_view GRAY = "\033[1;30m"; const std::string_view RESET = "\033[0m"; template void info(std::format_string fmt, Args&&... args) { std::cerr << WHITE << std::format(fmt, std::forward(args)...) << RESET << '\n'; } template void warn(std::format_string fmt, Args&&... args) { std::cerr << YELLOW << std::format(fmt, std::forward(args)...) << RESET << '\n'; } template void error(std::format_string fmt, Args&&... args) { std::cerr << RED << std::format(fmt, std::forward(args)...) << RESET << '\n'; } template void debug(std::format_string fmt, Args&&... args) { std::cerr << GRAY << std::format(fmt, std::forward(args)...) << RESET << '\n'; } } #endif // LOG_HPP