Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to log #434

Merged
merged 9 commits into from
Sep 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add System Info Log Function
datacrystals committed Sep 30, 2022
commit 2b8b6a2c378327629e92277a58a92913948e91a0
3 changes: 3 additions & 0 deletions Source/Internal/LoggingSystem/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -26,6 +26,9 @@ target_link_libraries(ERS_LoggingSystem

# Link Internal Libs
target_link_libraries(ERS_LoggingSystem
ERS_VersioningSystem
ERS_CompileTimeStamp
ERS_CompilePlatformInfo
)

if (WIN32)
17 changes: 17 additions & 0 deletions Source/Internal/LoggingSystem/ERS_LogSystemInfo.cpp
Original file line number Diff line number Diff line change
@@ -8,6 +8,23 @@

void ERS_LogSystemInfo(ERS_LoggingSystem* Logger) {

// Log Logo Text
Logger->Log("Starting BrainGenix-ERS Instance", 2);
Logger->Log("", 5);
Logger->Log("---------------------------------------------------------------------------", 5);
Logger->Log("\x1b[38;2;0;128;55m██████╗ ██████╗ █████╗ ██╗███╗ ██╗\x1b[38;2;130;68;208m ██████╗ ███████╗███╗ ██╗██╗██╗ ██╗", 5);
Logger->Log("\x1b[38;2;0;128;55m██╔══██╗██╔══██╗██╔══██╗██║████╗ ██║\x1b[38;2;130;68;208m██╔════╝ ██╔════╝████╗ ██║██║╚██╗██╔╝", 5);
Logger->Log("\x1b[38;2;0;128;55m██████╔╝██████╔╝███████║██║██╔██╗ ██║\x1b[38;2;130;68;208m██║ ███╗█████╗ ██╔██╗ ██║██║ ╚███╔╝ ", 5);
Logger->Log("\x1b[38;2;0;128;55m██╔══██╗██╔══██╗██╔══██║██║██║╚██╗██║\x1b[38;2;130;68;208m██║ ██║██╔══╝ ██║╚██╗██║██║ ██╔██╗ ", 5);
Logger->Log("\x1b[38;2;0;128;55m██████╔╝██║ ██║██║ ██║██║██║ ╚████║\x1b[38;2;130;68;208m╚██████╔╝███████╗██║ ╚████║██║██╔╝ ██╗", 5);
Logger->Log("\x1b[38;2;0;128;55m╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝\x1b[38;2;130;68;208m ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝", 5);
Logger->Log("---------------------------------------------------------------------------", 5);
Logger->Log("", 5);
Logger->Log(" +-----------------------------------------------------------------+", 4);
Logger->Log(" | BrainGenix-ERS Real-Time Environment Rendering System |", 4);
Logger->Log(" +-----------------------------------------------------------------+", 4);
Logger->Log("", 4);

Logger->Log("Version: " + ERS_VERSION, 5);

}
4 changes: 4 additions & 0 deletions Source/Internal/LoggingSystem/ERS_LogSystemInfo.h
Original file line number Diff line number Diff line change
@@ -12,6 +12,10 @@
// Internal Libraries (BG convention: use <> instead of "")
#include <ERS_LoggingSystem.h>

#include <ERS_Version.h>
#include <ERS_CompilePlatformInfo.h>
#include <ERS_CompileTimeStamp.h>


/**
* @brief Logs the system information as defined during compilation (version, target os, etc.)