Added a every 5 second flush

This commit is contained in:
WolverinDEV 2019-11-23 22:14:59 +01:00
parent 165782f396
commit 00c2502001

View File

@ -46,6 +46,7 @@ bool logger::setup(std::string& error) {
spdlog::apply_all([](const std::shared_ptr<spdlog::logger>& l) {
l->set_level(spdlog::level::trace);
});
spdlog::flush_every(std::chrono::seconds(5));
return true;
}