2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-24 05:32:06 +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

@@ -1,5 +1,7 @@
#include "AbstractMenuConverter.h"
#include "Utils/Logging/Log.h"
#include <format>
#include <iostream>
@@ -15,15 +17,15 @@ AbstractMenuConverter::AbstractMenuConverter(const bool disableOptimizations, IS
void AbstractMenuConverter::PrintConversionExceptionDetails(const MenuConversionException& e)
{
std::cerr << "ERROR while converting menu:\n";
std::cerr << std::format(" Menu: {}\n", e.m_menu->m_name);
con::error("ERROR while converting menu:");
con::error(" Menu: {}", e.m_menu->m_name);
if (e.m_item)
{
std::cerr << std::format("Item: {}\n", e.m_item->m_name);
con::error("Item: {}", e.m_item->m_name);
}
std::cerr << std::format(" Message: {}\n", e.m_message);
con::error(" Message: {}", e.m_message);
}
const char* AbstractMenuConverter::ConvertString(const std::string& str) const