Restore lost fileSinks push into sinks during initialization. (#950)

This commit is contained in:
Malkierian
2025-11-02 13:16:00 -05:00
committed by GitHub
parent 5f4be9b6f5
commit b9eaeffe15
+1
View File
@@ -144,6 +144,7 @@ bool Context::InitLogging() {
auto logPath = GetPathRelativeToAppDirectory(("logs/" + GetName() + ".log"));
auto fileSink = std::make_shared<spdlog::sinks::rotating_file_sink_mt>(logPath, 1024 * 1024 * 10, 10);
sinks.push_back(fileSink);
#ifdef _DEBUG
mLogger = std::make_shared<spdlog::logger>("multi_sink", sinks.begin(), sinks.end());
GetLogger()->flush_on(spdlog::level::trace);