mirror of
https://github.com/izzy2lost/libultraship.git
synced 2026-06-19 01:16:13 -07:00
Restore lost fileSinks push into sinks during initialization. (#950)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user