edit log file