add download log file function