adding log and open the file.