use standard iso c file io routines for logging