Lines Matching refs:logfile
66 static FILE* logfile = 0;
69 /** pthread key for thread ids in logfile */
95 if(logfile
105 if(logfile && logfile != stderr) {
106 FILE* cl = logfile;
107 logfile = NULL; /* set to NULL before it is closed, so that
108 other threads have a valid logfile or NULL */
137 logfile = stderr;
148 log_err("Could not open logfile %s: %s", filename,
156 logfile = f;
163 logfile = f;
268 if(!logfile) {
277 fprintf(logfile, "%s %s[%d:%x] %s: %s\n", tmbuf,
284 fprintf(logfile, "%s %s %s[%d:%x] %s: %s\n", dtbuf, tmbuf,
288 fprintf(logfile, "[" ARG_LL "d] %s[%d:%x] %s: %s\n", (long long)now,
292 fflush(logfile);