From f6aeb7c92528d7171bf52b53a5f8f167730a1021 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Thu, 3 Apr 2008 16:16:16 +0000 Subject: [PATCH] flush after each line so that data is written even if program is aborted git-svn-id: https://svn.dealii.org/trunk@15981 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/log.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/base/source/log.cc b/deal.II/base/source/log.cc index 0a43de08dc..64609a0d5a 100644 --- a/deal.II/base/source/log.cc +++ b/deal.II/base/source/log.cc @@ -90,7 +90,7 @@ LogStream::operator<< (std::ostream& (*p) (std::ostream&)) *std_out << stream.str(); if (file && (prefixes.size() <= file_depth)) - *file << stream.str(); + *file << stream.str() << std::flush; // Start a new string stream.str(""); -- 2.39.5