mirror of
https://github.com/forrest-orr/moneta
synced 2026-06-08 14:14:09 +00:00
30 lines
845 B
C++
30 lines
845 B
C++
enum class VerbosityLevel {
|
|
Surface = 0,
|
|
Detail,
|
|
Debug
|
|
};
|
|
|
|
enum class ConsoleColor {
|
|
Turquoise = 11,
|
|
Red = 12,
|
|
Gold = 6,
|
|
Yellow = 14
|
|
};
|
|
|
|
class Interface
|
|
{
|
|
public:
|
|
static void Initialize(std::wstring LogFilePath, VerbosityLevel Vlvl = VerbosityLevel::Surface);
|
|
static void Initialize(VerbosityLevel Vlvl = VerbosityLevel::Surface);
|
|
static void Initialize(std::vector<std::wstring> &Args);
|
|
static bool Log(VerbosityLevel MsgVlvl, const char *LogFormat, ...);
|
|
static bool Log(const char *LogFormat, ...);
|
|
static bool Log(ConsoleColor Color, const char* LogFormat, ...);
|
|
static HANDLE GetOutputHandle() { return Interface::Handle; }
|
|
static VerbosityLevel GetVerbosity() { return Interface::VerbosityLvl; }
|
|
private:
|
|
static std::wstring LogFilePath;
|
|
static HANDLE Handle;
|
|
static VerbosityLevel VerbosityLvl;
|
|
static bool IsStdout;
|
|
}; |