version 1.3 | | version 1.4 |
---|
| | |
/* | | /* |
* static char *rcsid_loger_c = | | * static char *rcsid_loger_c = |
* "$Id: logger.c,v 1.3 2000/05/21 21:41:45 jec Exp $ "; | | * "$Id: logger.c,v 1.4 2001/04/06 00:44:19 michtoen Exp $ "; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (logLevel <= settings.debug) | | if (logLevel <= settings.debug) |
{ | | { |
vsprintf(buf, format, ap); | | vsprintf(buf, format, ap); |
| | #ifdef WIN32 |
| | fputs(buf, logfile); // wrote to file or stdout |
| | #ifdef DEBUG // if we have a debug version, we want see ALL output |
| | fflush(logfile); // so flush this! |
| | #endif |
| | if(logfile != stderr) // if was it a logfile wrote it to screen too |
| | fputs(buf, stderr); |
| | #else |
fputs(buf, logfile); | | fputs(buf, logfile); |
| | #endif |
} | | } |
if (!exiting && !trying_emergency_save && | | if (!exiting && !trying_emergency_save && |
logLevel == llevError && ++nroferrors > MAX_ERRORS) { | | logLevel == llevError && ++nroferrors > MAX_ERRORS) { |