diff --git a/lib/libimhex/include/hex/helpers/logger.hpp b/lib/libimhex/include/hex/helpers/logger.hpp index 32a1a5734..f046ca9d4 100644 --- a/lib/libimhex/include/hex/helpers/logger.hpp +++ b/lib/libimhex/include/hex/helpers/logger.hpp @@ -48,7 +48,7 @@ EXPORT_MODULE namespace hex::log { printPrefix(dest, ts, level, IMHEX_PROJECT_NAME); auto message = fmt::format(fmt, std::forward(args)...); - fmt::println(dest, "{}", message); + fmt::print(dest, "{}\n", message); std::fflush(dest); addLogEntry(IMHEX_PROJECT_NAME, level, std::move(message)); @@ -123,7 +123,8 @@ EXPORT_MODULE namespace hex::log { try { auto dest = impl::getDestination(); - fmt::println(dest, fmt, std::forward(args)...); + fmt::print(dest, fmt, std::forward(args)...); + fmt::print("\n"); std::fflush(dest); } catch (const std::exception&) { /* Ignore any exceptions, we can't do anything anyway */