diff --git a/src/ship/Context.cpp b/src/ship/Context.cpp index 70ae151..f3db044 100644 --- a/src/ship/Context.cpp +++ b/src/ship/Context.cpp @@ -144,6 +144,7 @@ bool Context::InitLogging() { auto logPath = GetPathRelativeToAppDirectory(("logs/" + GetName() + ".log")); auto fileSink = std::make_shared(logPath, 1024 * 1024 * 10, 10); + sinks.push_back(fileSink); #ifdef _DEBUG mLogger = std::make_shared("multi_sink", sinks.begin(), sinks.end()); GetLogger()->flush_on(spdlog::level::trace);