Clean up the logging to file not including the time and output an error
when we failed to log to file.