diff --git a/include/spdlog/sinks/stdout_sinks-inl.h b/include/spdlog/sinks/stdout_sinks-inl.h index 756734bf..f8ad947c 100644 --- a/include/spdlog/sinks/stdout_sinks-inl.h +++ b/include/spdlog/sinks/stdout_sinks-inl.h @@ -68,6 +68,7 @@ SPDLOG_INLINE void stdout_sink_base::log(const details::log_msg &m { throw_spdlog_ex("stdout_sink_base: WriteFile() failed. GetLastError(): " + std::to_string(::GetLastError())); } + FlushFileBuffers(handle_); // flush every line to terminal #else std::lock_guard lock(mutex_); memory_buf_t formatted;