2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-11 19:21:50 +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

@@ -2,6 +2,7 @@
#include "RawTemplaterArguments.h"
#include "Templating/Templater.h"
#include "Utils/Logging/Log.h"
#include <filesystem>
#include <fstream>
@@ -21,7 +22,7 @@ class RawTemplater::Impl
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open())
{
std::cerr << "Failed to open file \"" << filename << "\"\n";
con::error("Failed to open file \"{}\"", filename);
return false;
}
@@ -61,7 +62,7 @@ public:
m_build_log_file = std::ofstream(m_args.m_build_log_file, std::ios::out | std::ios::binary);
if (!m_build_log_file.is_open())
{
std::cerr << "Failed to open build log file \"" << m_args.m_build_log_file << "\"\n";
con::error("Failed to open build log file \"{}\"", m_args.m_build_log_file);
return false;
}
m_write_build_log = true;