From: Alex Schmidt Date: Thu, 7 Feb 2013 10:01:58 +0000 (+0100) Subject: writing some log messages to log file instead of cerr. X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/commitdiff_plain/87a34b062f417714377b8639854e49993819ae14 writing some log messages to log file instead of cerr. --- diff --git a/writeout.cpp b/writeout.cpp index 67e90d3..19625ec 100644 --- a/writeout.cpp +++ b/writeout.cpp @@ -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 ""; }