diff Core/Logging.cpp @ 1507:46b2794042d6 Orthanc-0.9.3

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Aug 2015 20:14:26 +0200
parents fbe40117eb21
children 0dba274074eb
line wrap: on
line diff
--- a/Core/Logging.cpp	Fri Aug 07 18:27:20 2015 +0200
+++ b/Core/Logging.cpp	Fri Aug 07 20:14:26 2015 +0200
@@ -373,6 +373,23 @@
 
       (*stream_) << header;
     }
+
+
+    InternalLogger::~InternalLogger()
+    {
+      if (stream_ != &null_)
+      {
+#if defined(_WIN32)
+        *stream_ << "\r\n";
+#else
+        *stream_ << "\n";
+#endif
+
+        stream_->flush();
+      }
+    }
+      
+
   }
 }