Core/Logging: Minor internal refactor

* Avoid formatting to output with fprintf
* Use vector instead of unordered_map to store appenders in Logger
This commit is contained in:
Shauren
2024-07-16 16:31:40 +02:00
parent 14f7c0984f
commit 81bec6954f
13 changed files with 82 additions and 67 deletions

View File

@@ -826,6 +826,7 @@ bool ReadWinConsole(std::string& str, size_t size /*= 256*/)
bool WriteWinConsole(std::string_view str, bool error /*= false*/)
{
std::wstring wstr;
wstr.reserve(str.length());
if (!Utf8toWStr(str, wstr))
return false;