have curl write to log file