49#error Not implemented.
51inline constexpr std::string_view
Red =
"\x1b[1;31m";
52inline constexpr std::string_view
Green =
"\x1b[1;32m";
53inline constexpr std::string_view
Yellow =
"\x1b[1;33m";
54inline constexpr std::string_view
Blue =
"\x1b[1;34m";
55inline constexpr std::string_view
Magenta =
"\x1b[1;35m";
56inline constexpr std::string_view
Cyan =
"\x1b[1;36m";
57inline constexpr std::string_view
Reset =
"\x1b[0m";
62#define LOG_MSG(color, msg) \
63 std::cout << color << msg << ConsoleColours::Reset << std::endl;
65#define LOG_MSG_ONCE(color, msg) \
67 static bool msg_shown = false; \
74#define LOG_MSG_INFO(msg) LOG_MSG(ConsoleColours::Green, msg)
75#define LOG_MSG_WARN(msg) LOG_MSG(ConsoleColours::Yellow, msg)
76#define LOG_MSG_ERROR(msg) LOG_MSG(ConsoleColours::Red, msg)
78#define LOG_MSG_INFO_ONCE(msg) LOG_MSG_ONCE(ConsoleColours::Green, msg)
79#define LOG_MSG_WARN_ONCE(msg) LOG_MSG_ONCE(ConsoleColours::Yellow, msg)
80#define LOG_MSG_ERROR_ONCE(msg) LOG_MSG_ONCE(ConsoleColours::Red, msg)
constexpr std::string_view Red
Definition logging.h:51
constexpr std::string_view Blue
Definition logging.h:54
constexpr std::string_view Yellow
Definition logging.h:53
constexpr std::string_view Magenta
Definition logging.h:55
constexpr std::string_view Cyan
Definition logging.h:56
constexpr std::string_view Green
Definition logging.h:52
constexpr std::string_view Reset
Definition logging.h:57