added: Logging and log-points

This commit is contained in:
OusmBlueNinja 2024-12-24 23:47:09 -06:00
parent 3cc5499196
commit b8eafc3283
4 changed files with 16 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -28,18 +28,18 @@ Collapsed=0
Pos=8,8
Size=1264,352
Collapsed=0
DockId=0x00000005,0
DockId=0x00000003,0
[Window][Console]
Pos=8,362
Size=1264,350
Collapsed=0
DockId=0x00000006,0
DockId=0x00000004,0
[Docking][Data]
DockSpace ID=0x14621557 Window=0x3DA2F1DE Pos=8,8 Size=1264,704 Split=Y
DockNode ID=0x00000005 Parent=0x14621557 SizeRef=1264,352 CentralNode=1 Selected=0xC450F867
DockNode ID=0x00000006 Parent=0x14621557 SizeRef=1264,350 Selected=0xEA83D666
DockSpace ID=0x14621557 Window=0x3DA2F1DE Pos=8,8 Size=1264,704 Split=Y Selected=0xC450F867
DockNode ID=0x00000003 Parent=0x14621557 SizeRef=1264,352 CentralNode=1 Selected=0xC450F867
DockNode ID=0x00000004 Parent=0x14621557 SizeRef=1264,350 Selected=0xEA83D666
DockSpace ID=0xC0DFADC4 Pos=8,30 Size=1264,682 Split=X Selected=0x1FC7AC8C
DockNode ID=0x00000001 Parent=0xC0DFADC4 SizeRef=632,685 CentralNode=1 Selected=0xAAD7FFD4
DockNode ID=0x00000002 Parent=0xC0DFADC4 SizeRef=630,685 Selected=0x1FC7AC8C

View File

@ -7,10 +7,20 @@
#include "imgui_impl_opengl3.h"
#include "../IconsFontAwesome6.h" // Include the Font Awesome icons header
#include <iostream>
#include <stdio.h>
#include <vector>
#include <string>
#define DEBUG 1
#ifdef DEBUG
#define LOGPOINT(msg) std::cout << "[TESRCT] [" << __func__ << ":" << __LINE__ << "] " << (msg) << std::endl;
#else
#define LOGPOINT(msg)
#endif
// Logger Implementation
enum class LogLevel { INFO, WARNING, ERROR };
@ -74,6 +84,7 @@ ImVec4 GetColorForLogLevel(LogLevel level)
int main(int, char**)
{
LOGPOINT("Loading Engine");
Logger::GetInstance().Log(LogLevel::INFO, "Loading engine...");
// Setup GLFW error callback