commit 6080a91246715bd40f6ba2ed022e0776a38c2c41
Author: dprunier <dominique.prunier@watch4net.com>
Date:   Fri Jan 27 11:37:32 2012

    use stderr by default for logs instead of stdout

diff --git a/src/util.cpp b/src/util.cpp
index 509564a..fba7086 100755
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1557,7 +1557,7 @@ int ibis::util::writeLogFileHeader(FILE *fptr, const char *fname) {
     }
 } // ibis::util::writeLogFileHeader
 
-/// Retrieve the pointer to the log file.  The value of stdout will
+/// Retrieve the pointer to the log file.  The value of stderr will
 /// be returned if no log file was specified.  A log file name be
 /// specified through the following means (in the specified order),
 /// -- setLogFile
@@ -1602,9 +1602,9 @@ FILE* ibis::util::getLogFile() {
     }
 
     // fall back to use the standard output
-    ibis_util_logfilepointer = stdout;
+    ibis_util_logfilepointer = stderr;
     ibis_util_logfilename.erase();
-    return stdout;
+    return stderr;
 } // ibis::util::getLogFile
 
 /// Change the current log file to the named file.  Log files are
@@ -1627,7 +1627,7 @@ int ibis::util::setLogFileName(const char* filename) {
 
 	if (ibis_util_logfilepointer != 0 && ! ibis_util_logfilename.empty())
 	    fclose(ibis_util_logfilepointer);
-	ibis_util_logfilepointer = stdout;
+	ibis_util_logfilepointer = stderr;
 	ibis_util_logfilename.erase();
 	return 0;
     }
@@ -1666,7 +1666,7 @@ const char* ibis::util::getLogFileName() {
 /// termination of the program.
 void ibis::util::closeLogFile() {
     ibis::util::ioLock lock;
-    if (ibis_util_logfilepointer != 0 && ibis_util_logfilepointer != stdout) {
+    if (ibis_util_logfilepointer != 0 && ibis_util_logfilepointer != stderr) {
 	(void) fclose(ibis_util_logfilepointer);
 	ibis_util_logfilepointer = 0;
     }
