Boost logo

Boost-Commit :

From: john.groups_at_[hidden]
Date: 2007-10-24 04:40:37


Author: jtorjo
Date: 2007-10-24 04:40:37 EDT (Wed, 24 Oct 2007)
New Revision: 40400
URL: http://svn.boost.org/trac/boost/changeset/40400

Log:
[logging]
- added flush() to destination::file
Text files modified:
   sandbox/logging/boost/logging/detail/raw_doc/fixme.hpp | 1 -
   sandbox/logging/boost/logging/format/destination/file.hpp | 2 ++
   2 files changed, 2 insertions(+), 1 deletions(-)

Modified: sandbox/logging/boost/logging/detail/raw_doc/fixme.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/raw_doc/fixme.hpp (original)
+++ sandbox/logging/boost/logging/detail/raw_doc/fixme.hpp 2007-10-24 04:40:37 EDT (Wed, 24 Oct 2007)
@@ -8,7 +8,6 @@
 
 
 
---> post code on the net
 
 ------> FIXME after showing scenarios, show customizing?
 

Modified: sandbox/logging/boost/logging/format/destination/file.hpp
==============================================================================
--- sandbox/logging/boost/logging/format/destination/file.hpp (original)
+++ sandbox/logging/boost/logging/format/destination/file.hpp 2007-10-24 04:40:37 EDT (Wed, 24 Oct 2007)
@@ -91,6 +91,8 @@
     file_t(const std::string & file_name, file_settings set = file_settings() ) : non_const_context_base(file_name,set) {}
     template<class msg_type> void operator()(const msg_type & msg) const {
         convert_dest::write(msg, non_const_context_base::context().out );
+ if ( non_const_context_base::context().settings.flush_each_time() )
+ non_const_context_base::context().out.flush();
     }
 
     bool operator==(const file_t & other) const {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk