Modifying log file