Re: [Sablevm-developer] request for log messages
Brought to you by:
egagnon
From: David <db...@cs...> - 2004-03-15 01:30:47
|
On Sun, Mar 14, 2004 at 05:22:15PM -0500, Chris Pickett wrote: > Hi, >=20 > I think it would be good if all log messages were written to stderr.=20 > This means you can run benchmarks, and use the stdout to check that the= y=20 > executed properly, and stderr to analyse your changes. If this was=20 > done, I think it means that there would be zero occurrences of stdout i= n=20 > the SableVM tree, save for the license / help information ... but=20 > perhaps even that could be changed. >=20 > Anyway, it's something that I'm doing now, just thought I'd mention it=20 > in case there are any big problems. >=20 Hello, I assume you are talking about the verbose mode and stats. I will not comment on what is better since I'm never sure myself what to use. :) But I guess one option could be to use a variable for the FILE* to use for these "log" messages. The FILE* would default to either stdout or stderr but it could also be set to other (ex: a disk file) if stdout and stderr are used for other purposes. David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |