Index: trunk/BNC/src/PPP/pppRun.cpp
===================================================================
--- trunk/BNC/src/PPP/pppRun.cpp	(revision 5983)
+++ trunk/BNC/src/PPP/pppRun.cpp	(revision 5984)
@@ -52,4 +52,5 @@
 #include "bncephuser.h"
 #include "bncsettings.h"
+#include "bncoutf.h"
 #include "rinex/rnxobsfile.h"
 #include "rinex/rnxnavfile.h"
@@ -77,4 +78,6 @@
 
   _pppClient = new t_pppClient(_opt);
+
+  bncSettings settings;
 
   if (_opt->_realTime) {
@@ -100,5 +103,4 @@
   }
   else {
-    bncSettings settings;
     _rnxObsFile = 0;
     _rnxNavFile = 0;
@@ -113,4 +115,7 @@
  
   _stopFlag = false;
+
+  QString logFileSkl = settings.value("PPP/logFile").toString();
+  _logFile = new bncoutf(logFileSkl, "1 day", 0);
 }
 
@@ -118,4 +123,5 @@
 ////////////////////////////////////////////////////////////////////////////
 t_pppRun::~t_pppRun() {
+  delete _logFile;
 }
 
@@ -257,4 +263,6 @@
     }
 
+    _logFile->write(output._epoTime.gpsw(), output._epoTime.gpssec(), QString(output._log.c_str())); 
+
     emit newMessage(QByteArray(log.str().c_str()), true);
   }
Index: trunk/BNC/src/PPP/pppRun.h
===================================================================
--- trunk/BNC/src/PPP/pppRun.h	(revision 5983)
+++ trunk/BNC/src/PPP/pppRun.h	(revision 5984)
@@ -13,4 +13,5 @@
 class t_rnxNavFile;
 class t_corrFile;
+class bncoutf;
 
 namespace BNC_PPP {
@@ -66,4 +67,5 @@
   int           _speed;
   bool          _stopFlag;
+  bncoutf*      _logFile;
 };
 
