From 8e45b5895e578a9b2e236b37d54f6e7b9955c975 Mon Sep 17 00:00:00 2001 From: Kah Wei Date: Tue, 13 Sep 2022 20:31:08 +0800 Subject: [PATCH] Removed references to SHLogger in Debug.cxx --- SHADE_Managed/src/Utility/Debug.cxx | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/SHADE_Managed/src/Utility/Debug.cxx b/SHADE_Managed/src/Utility/Debug.cxx index e9234e94..330375b0 100644 --- a/SHADE_Managed/src/Utility/Debug.cxx +++ b/SHADE_Managed/src/Utility/Debug.cxx @@ -18,11 +18,8 @@ of DigiPen Institute of Technology is prohibited. #include "Debug.hxx" // Standard Libraries #include -// External Dependencies -#include "Tools/SHLogger.h" // Project Headers #include "Convert.hxx" -#include "SHLog.h" namespace SHADE { @@ -31,11 +28,11 @@ namespace SHADE /*---------------------------------------------------------------------------------*/ void Debug::Log(const std::string& str) { - SHLog::Info(str); + std::cout << str << std::endl; } void Debug::Log(System::String^ str) { - SHLog::Info(Convert::ToNative(str)); + System::Console::WriteLine(str); } void Debug::Log(System::String^ str, Object^ owner) @@ -50,15 +47,15 @@ namespace SHADE { std::ostringstream oss; oss << "[" << throwerName << "] " << Convert::ToNative(str); - SHLog::Info(oss.str()); + std::cout << oss.str() << std::endl; } void Debug::LogWarning(const std::string& str) { - SHLog::Warning(str); + std::cout << str << std::endl; } void Debug::LogWarning(System::String^ str) { - SHLog::Warning(Convert::ToNative(str)); + System::Console::WriteLine(str); } void Debug::LogWarning(System::String^ str, Object^ thrower) { @@ -73,15 +70,15 @@ namespace SHADE { std::ostringstream oss; oss << "[" << throwerName << "] " << Convert::ToNative(str); - SHLog::Warning(oss.str()); + std::cout << oss.str() << std::endl; } void Debug::LogError(const std::string& str) { - SHLog::Error(str); + std::cout << str << std::endl; } void Debug::LogError(System::String^ str) { - SHLog::Error(Convert::ToNative(str)); + System::Console::WriteLine(str); } void Debug::LogError(System::String^ str, Object^ thrower) { @@ -91,7 +88,7 @@ namespace SHADE { std::ostringstream oss; oss << "[" << throwerName << "] -> " << Convert::ToNative(str); - SHLog::Error(oss.str()); + std::cout << oss.str() << std::endl; } void Debug::LogError(System::String^ str, System::String^ throwerName) { @@ -114,12 +111,12 @@ namespace SHADE { std::ostringstream oss; oss << "[" << throwerName << "] Unhandled exception: " << Convert::ToNative(exception->ToString()); - SHLog::Error(oss.str()); + std::cout << oss.str() << std::endl; } void Debug::LogExceptionNative(const std::exception& exception, const std::string& throwerName) { std::ostringstream oss; oss << "[" << throwerName << "] Unhandled exception: " << exception.what(); - SHLog::Error(oss.str()); + std::cout << oss.str() << std::endl; } }