Base Code

Instance
Validation Layers
This commit is contained in:
onTheZero
2026-01-04 07:07:45 -05:00
parent 49aeba24cd
commit 5b32d32b0b
6 changed files with 343 additions and 51 deletions

29
Logger.h Normal file
View File

@@ -0,0 +1,29 @@
#pragma once
#include <iostream>
enum LogLevel {
INFO,
WARNING,
ERROR
};
void log(LogLevel level, const std::string& message) {
std::string levelStr;
switch(level) {
case INFO:
levelStr = "[INFO]";
break;
case WARNING:
levelStr = "[WARNING]";
break;
case ERROR:
levelStr = "[ERROR]";
break;
default:
levelStr = "[UNKNOWN]";
break;
}
std::cout << levelStr << " : " << message << std::endl;
}