mirror of
https://github.com/EricPlayZ/EGameTools.git
synced 2026-10-10 12:53:04 +08:00
695fe35e64
- Added logging - Fixed menu scaling issues with the new menu layout
34 lines
778 B
C++
34 lines
778 B
C++
#pragma once
|
|
#include <Windows.h>
|
|
#include <spdlog\logger.h>
|
|
|
|
namespace Utils {
|
|
enum ConsoleColors {
|
|
c_black,
|
|
c_blue,
|
|
c_green,
|
|
c_aqua,
|
|
c_red,
|
|
c_purple,
|
|
c_yellow,
|
|
c_white,
|
|
c_gray,
|
|
c_lightblue,
|
|
c_lightgreen,
|
|
c_lightaqua,
|
|
c_lightred,
|
|
c_lightpurple,
|
|
c_lightyellow,
|
|
c_brightwhite
|
|
};
|
|
|
|
template<typename... Args> void PrintError(const std::string f, Args... args) {
|
|
spdlog::error(fmt::runtime(f.c_str()), std::forward<Args>(args)...);
|
|
}
|
|
template<typename... Args> void PrintWarning(const std::string f, Args... args) {
|
|
spdlog::warn(fmt::runtime(f.c_str()), std::forward<Args>(args)...);
|
|
}
|
|
template<typename... Args> void PrintInfo(const std::string f, Args... args) {
|
|
spdlog::info(fmt::runtime(f.c_str()), std::forward<Args>(args)...);
|
|
}
|
|
} |