Files
EGameTools/DL2GameOverhaulScript/source/utils/print.h
T
EricPlayZ 695fe35e64 - Switched to "spdlog" for printing and logging
- Added logging
- Fixed menu scaling issues with the new menu layout
2024-02-18 02:33:13 +02:00

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)...);
}
}