Rework logger

This commit is contained in:
Antoine Pilote
2023-07-21 22:25:17 -04:00
parent 46a531fd7d
commit e4119c0d15
26 changed files with 127 additions and 97 deletions

View File

@@ -34,7 +34,7 @@ namespace Nuake
{
std::string assimpErrorMsg = std::string(import.GetErrorString());
std::string logMsg = "[Failed to load model] - " + assimpErrorMsg;
Logger::Log(logMsg, WARNING);
Logger::Log(logMsg, "model", WARNING);
return model;
}
@@ -219,7 +219,7 @@ namespace Nuake
if (!FileSystem::FileExists(texturePath, true))
{
std::string textureNotFoundmsg = "Texture file couldn't be found: " + texturePath;
Logger::Log(textureNotFoundmsg, Nuake::LOG_TYPE::WARNING);
Logger::Log(textureNotFoundmsg, "model", Nuake::LOG_TYPE::WARNING);
texturePath = "resources/Textures/default/Default.png";
}