Lines Matching refs:lg_fp
62 static FILE *lg_fp;
272 if ( (lg_fp = lg_fileopen (path, file)) == NULL )
294 if ( lg_fp )
296 ret = fclose (lg_fp);
297 lg_fp = NULL;
317 if ( lg_fp )
318 lg_fpsave = lg_fp;
319 lg_fp = lg_fileopen (dir, fname);
321 return lg_fp != NULL;
333 if ( lg_fp && lg_fpsave )
336 lg_fp = lg_fpsave;
407 dbg_val3 ("filelg = %d prio = %d >= filmin = %d\n", lg_fp!=NULL, priority, lg_minfilelevel);
408 if ( lg_fp && priority >= lg_minfilelevel )
413 fprintf (lg_fp, "%04d-%02d-%02d ",
415 fprintf (lg_fp, "%02d:%02d:%02d.%03ld: ",
420 fprintf (lg_fp, "%s: ", lg_progname);
424 fprintf (lg_fp, "%s: ", lg_lvl2str(priority));
427 vfprintf (lg_fp, fmt, ap);
429 fprintf (lg_fp, "\n");