]> git.treefish.org Git - phys/latlib.git/blobdiff - writeout.cpp
writing some log messages to log file instead of cerr.
[phys/latlib.git] / writeout.cpp
index 67e90d3b3b9f54fb826d3aa8a554010cd7e3e492..19625ec0a75b1d03919876df3b5f3bbb09972643 100644 (file)
@@ -85,7 +85,7 @@ writeout::~writeout()
              if( (nextfile=getdatfile()) == "" ) sleep(1);
              else
                {
-                 cerr << "collecting " << nextfile << endl;
+                 logf << "collecting " << nextfile << endl;
 
                  ifstream myfile( (fulldir + "/" + nextfile).c_str() );
                  while(true){
@@ -121,7 +121,7 @@ string writeout::getdatfile()
   struct dirent *dirp;
 
   if((dp  = opendir(fulldir.c_str())) == NULL) {
-    cerr << "Error(" << errno << ") opening " << fulldir << endl;
+    logf << "Error(" << errno << ") opening " << fulldir << endl;
     return "";
   }