log file clean up