Lines Matching refs:logfile
67 static FILE* logfile = 0;
70 /** pthread key for thread ids in logfile */
98 if(logfile
108 if(logfile && logfile != stderr) {
109 FILE* cl = logfile;
110 logfile = NULL; /* set to NULL before it is closed, so that
111 other threads have a valid logfile or NULL */
140 logfile = stderr;
151 log_err("Could not open logfile %s: %s", filename,
159 logfile = f;
166 logfile = f;
276 if(!logfile) {
297 fprintf(logfile, "%s.%3.3d%s %s[%d:%x] %s: %s\n",
302 fflush(logfile);
313 fprintf(logfile, "%s %s[%d:%x] %s: %s\n", tmbuf,
320 fprintf(logfile, "%s %s %s[%d:%x] %s: %s\n", dtbuf, tmbuf,
324 fprintf(logfile, "[" ARG_LL "d] %s[%d:%x] %s: %s\n", (long long)now,
328 fflush(logfile);