Hi, Dominique, The functions ibis::util::setLogFileName and ibis::util::writeLogFileHeader have been refactored and modified to accommodate stderr and stdout in SVN revision 469. Please take a look when you got the chance.
John On 2/2/12 6:49 AM, Dominique Prunier wrote: > Agreed, alternatively, a method to switch to stderr would be fine too (it > actually kinda works to call ibis::util::writeLogFileHeader(stderr,"stderr"), > but there are a few places where it is assumed to be a file). > > Thanks, > > -----Original Message----- > From: K. John Wu [mailto:[email protected]] > Sent: Thursday, February 02, 2012 12:12 AM > To: FastBit Users > Cc: Dominique Prunier > Subject: Re: [FastBit-users] PATCH: uses stderr instead of stdout to log > > Hi, Dominique, > > Thanks for the suggestion to switch from stdout to stderr. Since > std::clog and std::cerr are the same output stream, your suggestion > sounds a lot closer to more accepted convention. To avoid the sudden > change that might introduce confusions in some user programs that > expect the log messages to go into go into stdout, I am inclined to > keep the default to stdout for the moment but has added a couple of > compiler macros to allow one to control whether to use stdout or stderr. > > I have also added a note to warn users that the default will be > changed to stderr soon. > > Thanks again. > > John > > PS: You can use -DFASTBIT_LOG_TO_STDERR to tell FastBit to use stderr > as the default log file. > > > On 1/31/12 6:04 PM, Dominique Prunier wrote: >> Hey, >> >> >> >> A quick and simple patch to use stderr as the default logger instead >> of stdout. I don’t know if it make sense to include it in the release >> John, your choice. >> >> >> >> Thanks, >> >> >> >> */Dominique Prunier/**//* >> >> APG Lead Developper >> >> Logo-W4N-100dpi >> >> 4388, rue Saint-Denis >> >> Bureau 309 >> >> Montreal (Quebec) H2J 2L1 >> >> Tel. +1 514-842-6767 x310 >> >> Fax +1 514-842-3989 >> >> [email protected] <mailto:[email protected]> >> >> www.watch4net.com <http://www.watch4net.com/> >> >> / / >> >> /This message is for the designated recipient only and may contain >> privileged, proprietary, or otherwise private information. If you have >> received it in error, please notify the sender immediately and delete >> the original. Any other use of this electronic mail by you is prohibited. >> >> //Ce message est pour le récipiendaire désigné seulement et peut >> contenir des informations privilégiées, propriétaires ou autrement >> privées. Si vous l'avez reçu par erreur, S.V.P. avisez l'expéditeur >> immédiatement et effacez l'original. Toute autre utilisation de ce >> courrier électronique par vous est prohibée./// >> >> >> >> >> >> _______________________________________________ >> FastBit-users mailing list >> [email protected] >> https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users _______________________________________________ FastBit-users mailing list [email protected] https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
