From: Guido Kanschat Date: Thu, 3 Apr 2008 16:16:16 +0000 (+0000) Subject: flush after each line so that data is written even if program is aborted X-Git-Tag: v8.0.0~9231 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6aeb7c92528d7171bf52b53a5f8f167730a1021;p=dealii.git 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 --- 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("");