-
Notifications
You must be signed in to change notification settings - Fork 5k
FAQ
Gabi Melman edited this page Feb 4, 2020
·
3 revisions
The log file remains empty . What's wrong?
For performance reasons, files are not flushed immediately. Try any of the following methods:
my_logger->flush_on(spdlog::level::info); // my_logger will flush when "info" or higher message is logged
spdlog::flush_on(spdlog::level::info); // all loggers will flush when "info" or higher message is logged on all loggers
spdlog::flush_every(std::chrono::seconds(5)); // flush periodically every 5 seconds (caution: must be _mt logger)See the flush policy for details.
©gabime 2023-2024 spdlog. All Rights Reserved.