make log file as txt