2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-23 21:22:07 +00:00

chore: update all logging to use centralized logging component

This commit is contained in:
Jan Laupetin
2025-09-10 19:52:42 +02:00
parent 1bf4033f41
commit 02f20f09b6
161 changed files with 824 additions and 664 deletions

View File

@@ -4,6 +4,7 @@
#include "Parsing/Impl/ParserSingleInputStream.h"
#include "Parsing/Simple/SimpleLexer.h"
#include "Parsing/TechniqueFileParser.h"
#include "Utils/Logging/Log.h"
#include <iostream>
@@ -33,6 +34,6 @@ bool TechniqueFileReader::ReadTechniqueDefinition() const
if (success)
return true;
std::cout << "Parsing technique file \"" << m_file_name << "\" failed!\n";
con::error("Parsing technique file \"{}\" failed!", m_file_name);
return false;
}

View File

@@ -3,6 +3,7 @@
#include "Parsing/Impl/CommentRemovingStreamProxy.h"
#include "Parsing/Impl/ParserSingleInputStream.h"
#include "Parsing/TechsetFileParser.h"
#include "Utils/Logging/Log.h"
#include <format>
#include <iostream>
@@ -34,6 +35,6 @@ std::unique_ptr<techset::TechsetDefinition> TechsetFileReader::ReadTechsetDefini
if (success)
return parser->GetTechsetDefinition();
std::cerr << std::format("Parsing techset file \"{}\" failed!\n", m_file_name);
con::error("Parsing techset file \"{}\" failed!", m_file_name);
return nullptr;
}