Only wipe old logging file when reason to write new one.