Logging problem

James Nakamura naka____Metricom.com
Mon Mar 13 21:24:44 CET 2000


I don't know why, but when I went to logging to a file, I needed to add a
fflush
to the logging object:

Log& Log::operator+=(const LogEntry *log)
{
	if ((log-type) ...
		if (log->count == 0)
			fprintf(...
		else
			fprintf(...
	fflush(logfile);

Without it, I wasn't getting logging to the file. Very strange...

naka
naka at metricom.com
"I have a dream that one day every valley shall be exalted, every hill shall
be made low, the rough places will be made plain, and the crooked places
will be made straight, and the glory of the Lord shall be revealed, and all
flesh shall see it together."
Martin Luther King 



More information about the AGENTPP mailing list