diff --git a/lib/libimhex/include/hex/helpers/logger.hpp b/lib/libimhex/include/hex/helpers/logger.hpp index c3cfa9b4b..bdf9edd00 100644 --- a/lib/libimhex/include/hex/helpers/logger.hpp +++ b/lib/libimhex/include/hex/helpers/logger.hpp @@ -56,6 +56,7 @@ namespace hex::log { auto message = fmt::format(fmt::runtime(fmt), args...); fmt::print(dest, "{}\n", message); + fflush(dest); impl::getLogEntries().push_back({ IMHEX_PROJECT_NAME, level, std::move(message) }); }