Added a every 5 second flush
This commit is contained in:
parent
165782f396
commit
00c2502001
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user